]> wimlib.net Git - wimlib/blobdiff - include/wimlib/integrity.h
mount_image.c: add fallback definitions of RENAME_* constants
[wimlib] / include / wimlib / integrity.h
index c9e07ca8e55bc1d1c5359a3d8cee737f808a9dc5..755cddda34db6bea5abd774330f26af9f208c780 100644 (file)
@@ -1,20 +1,29 @@
 #ifndef _WIMLIB_INTEGRITY_H
 #define _WIMLIB_INTEGRITY_H
 
-#include "wimlib.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
 
-extern int
+struct integrity_table;
+
+int
+read_integrity_table(WIMStruct *wim, u64 num_checked_bytes,
+                    struct integrity_table **table_ret);
+
+#define free_integrity_table(table) FREE(table)
+
+int
 write_integrity_table(WIMStruct *wim,
-                     off_t new_lookup_table_end,
-                     off_t old_lookup_table_end,
-                     wimlib_progress_func_t progress_func);
+                     off_t new_blob_table_end,
+                     off_t old_blob_table_end,
+                     struct integrity_table *old_table);
 
-extern int
-check_wim_integrity(WIMStruct *wim, wimlib_progress_func_t progress_func);
+int
+check_wim_integrity(WIMStruct *wim);
 
 #endif /* _WIMLIB_INTEGRITY_H */