1 #ifndef _WIMLIB_INTEGRITY_H
2 #define _WIMLIB_INTEGRITY_H
4 #include "wimlib/types.h"
7 #define WIM_INTEGRITY_OK 0
8 #define WIM_INTEGRITY_NOT_OK -1
9 #define WIM_INTEGRITY_NONEXISTENT -2
11 struct integrity_table;
14 read_integrity_table(WIMStruct *wim, u64 num_checked_bytes,
15 struct integrity_table **table_ret);
17 #define free_integrity_table(table) FREE(table)
20 write_integrity_table(WIMStruct *wim,
21 off_t new_lookup_table_end,
22 off_t old_lookup_table_end,
23 struct integrity_table *old_table);
26 check_wim_integrity(WIMStruct *wim);
28 #endif /* _WIMLIB_INTEGRITY_H */