]> wimlib.net Git - wimlib/blobdiff - include/wimlib/integrity.h
Refactor headers
[wimlib] / include / wimlib / integrity.h
diff --git a/include/wimlib/integrity.h b/include/wimlib/integrity.h
new file mode 100644 (file)
index 0000000..6d5a16b
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _WIMLIB_INTEGRITY_H
+#define _WIMLIB_INTEGRITY_H
+
+#include "wimlib.h"
+#include <sys/types.h>
+
+#define WIM_INTEGRITY_OK 0
+#define WIM_INTEGRITY_NOT_OK -1
+#define WIM_INTEGRITY_NONEXISTENT -2
+
+struct resource_entry;
+
+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);
+
+extern int
+check_wim_integrity(WIMStruct *w, wimlib_progress_func_t progress_func);
+
+#endif /* _WIMLIB_INTEGRITY_H */