]> wimlib.net Git - wimlib/blobdiff - include/wimlib/integrity.h
bitops: rename bit scan functions
[wimlib] / include / wimlib / integrity.h
index 1d115ff8cc834a78ca9c57f09a76a878d5e2a608..48f24e319a4c2b448e4d18b17d40e8cec4d7d75c 100644 (file)
@@ -1,17 +1,27 @@
 #ifndef _WIMLIB_INTEGRITY_H
 #define _WIMLIB_INTEGRITY_H
 
-#include "wimlib/types.h"
 #include <sys/types.h>
 
+#include "wimlib/types.h"
+
 #define WIM_INTEGRITY_OK 0
 #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 new_blob_table_end,
+                     off_t old_blob_table_end,
+                     struct integrity_table *old_table);
 
 extern int
 check_wim_integrity(WIMStruct *wim);