]> wimlib.net Git - wimlib/blob - include/wimlib/integrity.h
Cleanup timestamp conversion code
[wimlib] / include / wimlib / integrity.h
1 #ifndef _WIMLIB_INTEGRITY_H
2 #define _WIMLIB_INTEGRITY_H
3
4 #include "wimlib/types.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 integrity_table;
12
13 extern int
14 read_integrity_table(WIMStruct *wim, u64 num_checked_bytes,
15                      struct integrity_table **table_ret);
16
17 #define free_integrity_table(table) FREE(table)
18
19 extern int
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);
24
25 extern int
26 check_wim_integrity(WIMStruct *wim);
27
28 #endif /* _WIMLIB_INTEGRITY_H */