X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fintegrity.h;h=48f24e319a4c2b448e4d18b17d40e8cec4d7d75c;hb=d42ff1590b4cae74da995e61896c1fa97c9126b9;hp=6d5a16b5aad99eb4a10ba8454560ab9e37efc22b;hpb=e8c3ca2d1d0cac3d64985b45a9f654d2029a7518;p=wimlib diff --git a/include/wimlib/integrity.h b/include/wimlib/integrity.h index 6d5a16b5..48f24e31 100644 --- a/include/wimlib/integrity.h +++ b/include/wimlib/integrity.h @@ -1,23 +1,29 @@ #ifndef _WIMLIB_INTEGRITY_H #define _WIMLIB_INTEGRITY_H -#include "wimlib.h" #include +#include "wimlib/types.h" + #define WIM_INTEGRITY_OK 0 #define WIM_INTEGRITY_NOT_OK -1 #define WIM_INTEGRITY_NONEXISTENT -2 -struct resource_entry; +struct integrity_table; + +extern int +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(int fd, - struct resource_entry *integrity_res_entry, - off_t new_lookup_table_end, - off_t old_lookup_table_end, - wimlib_progress_func_t progress_func); +write_integrity_table(WIMStruct *wim, + off_t new_blob_table_end, + off_t old_blob_table_end, + struct integrity_table *old_table); extern int -check_wim_integrity(WIMStruct *w, wimlib_progress_func_t progress_func); +check_wim_integrity(WIMStruct *wim); #endif /* _WIMLIB_INTEGRITY_H */