2 * win32.h - Windows-specific declarations needed by non-Windows-specific files.
5 #ifndef _WIMLIB_WIN32_H
6 #define _WIMLIB_WIN32_H
10 #include "wimlib/types.h"
12 struct blob_descriptor;
13 struct consume_chunk_callback;
16 extern struct windows_file *
17 clone_windows_file(const struct windows_file *file);
20 free_windows_file(struct windows_file *file);
23 cmp_windows_files(const struct windows_file *file1,
24 const struct windows_file *file2);
27 read_windows_file_prefix(const struct blob_descriptor *blob, u64 size,
28 const struct consume_chunk_callback *cb);
31 win32_global_init(int init_flags);
34 win32_global_cleanup(void);
40 realpath(const tchar *path, tchar *resolved_path);
43 win32_rename_replacement(const tchar *oldpath, const tchar *newpath);
46 win32_truncate_replacement(const tchar *path, off_t size);
49 win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen);
52 win32_open_logfile(const wchar_t *path);
55 win32_read(int fd, void *buf, size_t count);
58 win32_write(int fd, const void *buf, size_t count);
61 win32_pread(int fd, void *buf, size_t count, off_t offset);
64 win32_pwrite(int fd, const void *buf, size_t count, off_t offset);
66 #endif /* __WIN32__ */
68 #endif /* _WIMLIB_WIN32_H */