X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fintegrity.h;h=fa4e6a34c9245bee8771c6c90b3384079f3b2996;hb=156bb1de48ff4a594f6a2a2f86e86213d65a6b08;hp=aa541f6afde4ebdd456db5e07edff6e2afb73fb0;hpb=00a775dc256d1fc8254d4f055e362e67f25b66d8;p=wimlib diff --git a/include/wimlib/integrity.h b/include/wimlib/integrity.h index aa541f6a..fa4e6a34 100644 --- a/include/wimlib/integrity.h +++ b/include/wimlib/integrity.h @@ -1,23 +1,28 @@ #ifndef _WIMLIB_INTEGRITY_H #define _WIMLIB_INTEGRITY_H -#include "wimlib.h" +#include "wimlib/types.h" #include #define WIM_INTEGRITY_OK 0 #define WIM_INTEGRITY_NOT_OK -1 #define WIM_INTEGRITY_NONEXISTENT -2 -struct resource_entry; +struct integrity_table; extern int -write_integrity_table(int fd, - struct resource_entry *integrity_res_entry, +read_integrity_table(WIMStruct *wim, u64 num_checked_bytes, + struct integrity_table **table_ret); + +#define free_integrity_table(table) FREE(table) + +extern int +write_integrity_table(WIMStruct *wim, off_t new_lookup_table_end, off_t old_lookup_table_end, - wimlib_progress_func_t progress_func); + struct integrity_table *old_table); extern int -check_wim_integrity(WIMStruct *wim, wimlib_progress_func_t progress_func); +check_wim_integrity(WIMStruct *wim); #endif /* _WIMLIB_INTEGRITY_H */