X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flookup_table.h;h=199ae347fa78a86f7fd4866b222d4ae8b973d84c;hb=00334bdf09071e65e340eeeb6f3900c79a262649;hp=d172cac9cb1c05b13a9fe060adc3af8572d7125e;hpb=16176f3b7ce78da85646e814bd2f3ffe5babb82b;p=wimlib diff --git a/src/lookup_table.h b/src/lookup_table.h index d172cac9..199ae347 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -11,6 +11,10 @@ #define LOOKUP_FLAG_ADS_OK 0x00000001 #define LOOKUP_FLAG_DIRECTORY_OK 0x00000002 +#ifdef __WIN32__ +#include +#endif + /* The lookup table of a WIM file maps SHA1 message digests to streams of data. * Here, the in-memory structure is implemented as a hash table. @@ -159,6 +163,9 @@ struct wim_lookup_table_entry { WIMStruct *wim; mbchar *file_on_disk; mbchar *staging_file_name; + #ifdef __WIN32__ + wchar_t *win32_file_on_disk; + #endif u8 *attached_buffer; #ifdef WITH_NTFS_3G struct ntfs_location *ntfs_loc; @@ -168,6 +175,7 @@ struct wim_lookup_table_entry { /* @file_on_disk_fp and @attr are both used to cache file/stream * handles so we don't have re-open them on every read */ + /* Valid iff resource_location == RESOURCE_IN_FILE_ON_DISK */ FILE *file_on_disk_fp; #ifdef WITH_NTFS_3G @@ -175,6 +183,10 @@ struct wim_lookup_table_entry { struct _ntfs_attr *attr; #endif + #ifdef __WIN32__ + HANDLE win32_file_on_disk_fp; + #endif + /* Pointer to inode that contains the opened file descriptors to * this stream (valid iff resource_location == * RESOURCE_IN_STAGING_FILE) */