]> git.sven.stormbind.net Git - sven/exfatprogs.git/blob - fsck/repair.h
New upstream version 1.0.4
[sven/exfatprogs.git] / fsck / repair.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  *  Copyright (C) 2020 Hyunchul Lee <hyc.lee@gmail.com>
4  */
5 #ifndef _REPAIR_H
6 #define _REPAIR_H
7
8 #define ER_BS_CHECKSUM                  0x00000001
9 #define ER_DE_CHECKSUM                  0x00001001
10 #define ER_FILE_VALID_SIZE              0x00002001
11 #define ER_FILE_INVALID_CLUS            0x00002002
12 #define ER_FILE_FIRST_CLUS              0x00002003
13 #define ER_FILE_SMALLER_SIZE            0x00002004
14 #define ER_FILE_LARGER_SIZE             0x00002005
15 #define ER_FILE_DUPLICATED_CLUS         0x00002006
16 #define ER_FILE_ZERO_NOFAT              0x00002007
17
18 typedef unsigned int er_problem_code_t;
19
20 bool exfat_repair_ask(struct exfat *exfat, er_problem_code_t prcode,
21                 const char *fmt, ...);
22
23 #endif