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,
32 win32_global_init(int init_flags);
35 win32_global_cleanup(void);
41 realpath(const tchar *path, tchar *resolved_path);
44 win32_rename_replacement(const tchar *oldpath, const tchar *newpath);
47 win32_truncate_replacement(const tchar *path, off_t size);
50 win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen);
53 win32_open_logfile(const wchar_t *path);
56 win32_read(int fd, void *buf, size_t count);
59 win32_write(int fd, const void *buf, size_t count);
62 win32_pread(int fd, void *buf, size_t count, off_t offset);
65 win32_pwrite(int fd, const void *buf, size_t count, off_t offset);
67 #endif /* __WIN32__ */
69 #endif /* _WIMLIB_WIN32_H */