header cleanups
[wimlib] / include / wimlib / integrity.h
1 #ifndef _WIMLIB_INTEGRITY_H
2 #define _WIMLIB_INTEGRITY_H
3
4 #include <sys/types.h>
5
6 #include "wimlib/types.h"
7
8 #define WIM_INTEGRITY_OK 0
9 #define WIM_INTEGRITY_NOT_OK -1
10 #define WIM_INTEGRITY_NONEXISTENT -2
11
12 struct integrity_table;
13
14 extern int
15 read_integrity_table(WIMStruct *wim, u64 num_checked_bytes,
16                      struct integrity_table **table_ret);
17
18 #define free_integrity_table(table) FREE(table)
19
20 extern int
21 write_integrity_table(WIMStruct *wim,
22                       off_t new_lookup_table_end,
23                       off_t old_lookup_table_end,
24                       struct integrity_table *old_table);
25
26 extern int
27 check_wim_integrity(WIMStruct *wim);
28
29 #endif /* _WIMLIB_INTEGRITY_H */