1 #ifndef _WIMLIB_INTEGRITY_H
2 #define _WIMLIB_INTEGRITY_H
6 #include "wimlib/types.h"
8 #define WIM_INTEGRITY_OK 0
9 #define WIM_INTEGRITY_NOT_OK -1
10 #define WIM_INTEGRITY_NONEXISTENT -2
12 struct integrity_table;
15 read_integrity_table(WIMStruct *wim, u64 num_checked_bytes,
16 struct integrity_table **table_ret);
18 #define free_integrity_table(table) FREE(table)
21 write_integrity_table(WIMStruct *wim,
22 off_t new_blob_table_end,
23 off_t old_blob_table_end,
24 struct integrity_table *old_table);
27 check_wim_integrity(WIMStruct *wim);
29 #endif /* _WIMLIB_INTEGRITY_H */