-#define WIMLIB_WRITE_FLAG_NO_LOOKUP_TABLE 0x80000000
-#define WIMLIB_WRITE_FLAG_REUSE_INTEGRITY_TABLE 0x40000000
-#define WIMLIB_WRITE_FLAG_CHECKPOINT_AFTER_XML 0x20000000
-#define WIMLIB_WRITE_MASK_PUBLIC 0x1fffffff
-
-extern int
-begin_write(WIMStruct *w, const tchar *path, int write_flags);
-
-extern void
-close_wim_writable(WIMStruct *w);
-
-extern int
-finish_write(WIMStruct *w, int image, int write_flags,
- wimlib_progress_func_t progress_func);
+#define WIMLIB_WRITE_FLAG_NO_LOOKUP_TABLE 0x80000000
+#define WIMLIB_WRITE_FLAG_CHECKPOINT_AFTER_XML 0x40000000
+#define WIMLIB_WRITE_FLAG_REUSE_INTEGRITY_TABLE 0x20000000
+#define WIMLIB_WRITE_FLAG_HEADER_AT_END 0x10000000
+#define WIMLIB_WRITE_FLAG_FILE_DESCRIPTOR 0x08000000
+#define WIMLIB_WRITE_FLAG_USE_EXISTING_TOTALBYTES 0x04000000
+#define WIMLIB_WRITE_FLAG_NO_METADATA 0x02000000
+#define WIMLIB_WRITE_MASK_PUBLIC 0x01ffffff