X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fwin32.h;h=89b385f214a06f07f573c30cf7b17bb126cbb5cc;hb=18b97ba5b37c0134513886062946d0fd521a9b5e;hp=0ef410a8d3aaaea8fe29cbc1713429327d511ff8;hpb=9e2571b03cd9c71d11b3dad9ea5dcfa43f50deb4;p=wimlib diff --git a/src/win32.h b/src/win32.h index 0ef410a8..89b385f2 100644 --- a/src/win32.h +++ b/src/win32.h @@ -8,26 +8,28 @@ extern int win32_build_dentry_tree(struct wim_dentry **root_ret, const tchar *root_disk_path, - struct wim_lookup_table *lookup_table, - struct wim_inode_table *inode_table, - struct sd_set *sd, - const struct wimlib_capture_config *config, - int add_image_flags, - wimlib_progress_func_t progress_func, - void *extra_arg); + struct add_image_params *params); + +extern int +win32_get_file_and_vol_ids(const wchar_t *path, u64 *ino_ret, u64 *dev_ret); extern int win32_read_file(const tchar *filename, HANDLE handle, u64 offset, size_t size, void *buf); extern int -read_win32_file_prefix(const struct lookup_table_entry *lte, +read_win32_file_prefix(const struct wim_lookup_table_entry *lte, u64 size, consume_data_callback_t cb, void *ctx_or_buf, - int _ignored_flags) -{ -} + int _ignored_flags); + +extern int +read_win32_encrypted_file_prefix(const struct wim_lookup_table_entry *lte, + u64 size, + consume_data_callback_t cb, + void *ctx_or_buf, + int _ignored_flags); #define FNM_PATHNAME 0x1 #define FNM_NOESCAPE 0x2 @@ -44,8 +46,8 @@ win32_do_apply_dentry(const tchar *output_path, extern int win32_do_apply_dentry_timestamps(const tchar *output_path, size_t output_path_nbytes, - const struct wim_dentry *dentry, - const struct apply_args *args); + struct wim_dentry *dentry, + struct apply_args *args); extern int fsync(int fd); @@ -75,4 +77,13 @@ win32_global_cleanup(); extern int win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen); +extern ssize_t +win32_pread(int fd, void *buf, size_t count, off_t offset); + +extern ssize_t +win32_pwrite(int fd, const void *buf, size_t count, off_t offset); + +extern ssize_t +win32_writev(int fd, const struct iovec *iov, int iovcnt); + #endif /* _WIMLIB_WIN32_H */