X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fintegrity.h;h=fa4e6a34c9245bee8771c6c90b3384079f3b2996;hb=dd3f804966f577b104eda649f572e8e765edc7ef;hp=1d115ff8cc834a78ca9c57f09a76a878d5e2a608;hpb=b5b9681794d1f5f13350e3567f6f6e74f5c779cf;p=wimlib diff --git a/include/wimlib/integrity.h b/include/wimlib/integrity.h index 1d115ff8..fa4e6a34 100644 --- a/include/wimlib/integrity.h +++ b/include/wimlib/integrity.h @@ -8,10 +8,19 @@ #define WIM_INTEGRITY_NOT_OK -1 #define WIM_INTEGRITY_NONEXISTENT -2 +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(WIMStruct *wim, off_t new_lookup_table_end, - off_t old_lookup_table_end); + off_t old_lookup_table_end, + struct integrity_table *old_table); extern int check_wim_integrity(WIMStruct *wim);