6d5a16b5aad99eb4a10ba8454560ab9e37efc22b
[wimlib] / include / wimlib / integrity.h
1 #ifndef _WIMLIB_INTEGRITY_H
2 #define _WIMLIB_INTEGRITY_H
3
4 #include "wimlib.h"
5 #include <sys/types.h>
6
7 #define WIM_INTEGRITY_OK 0
8 #define WIM_INTEGRITY_NOT_OK -1
9 #define WIM_INTEGRITY_NONEXISTENT -2
10
11 struct resource_entry;
12
13 extern int
14 write_integrity_table(int fd,
15                       struct resource_entry *integrity_res_entry,
16                       off_t new_lookup_table_end,
17                       off_t old_lookup_table_end,
18                       wimlib_progress_func_t progress_func);
19
20 extern int
21 check_wim_integrity(WIMStruct *w, wimlib_progress_func_t progress_func);
22
23 #endif /* _WIMLIB_INTEGRITY_H */