w -> wim
[wimlib] / include / wimlib / write.h
1 #ifndef _WIMLIB_WRITE_H
2 #define _WIMLIB_WRITE_H
3
4 #include "wimlib.h"
5 #include "wimlib/types.h"
6
7 /* Internal use only */
8 #define WIMLIB_WRITE_FLAG_NO_LOOKUP_TABLE       0x80000000
9 #define WIMLIB_WRITE_FLAG_REUSE_INTEGRITY_TABLE 0x40000000
10 #define WIMLIB_WRITE_FLAG_CHECKPOINT_AFTER_XML  0x20000000
11 #define WIMLIB_WRITE_MASK_PUBLIC                0x1fffffff
12
13 extern int
14 begin_write(WIMStruct *wim, const tchar *path, int write_flags);
15
16 extern void
17 close_wim_writable(WIMStruct *wim);
18
19 extern int
20 finish_write(WIMStruct *wim, int image, int write_flags,
21              wimlib_progress_func_t progress_func);
22
23 #if defined(HAVE_SYS_FILE_H) && defined(HAVE_FLOCK)
24 extern int
25 lock_wim(WIMStruct *wim, int fd);
26 #else
27 static inline int
28 lock_wim(WIMStruct *wim, int fd)
29 {
30         return 0;
31 }
32 #endif
33
34 #endif /* _WIMLIB_WRITE_H */