]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.h
Win32: Add untested support for encryted capture
[wimlib] / src / lookup_table.h
index a5e4826116098f1cf2e1b3044bcc04f0f515b806..2a6bf89b35eec48a33093246c5e62b230661cabc 100644 (file)
@@ -67,7 +67,9 @@ enum resource_location {
         * file will be provided by @file_on_disk member.  In addition, if
         * @file_on_disk_fp is not NULL, it will be an open FILE * to the file.
         * */
+#ifndef __WIN32__
        RESOURCE_IN_FILE_ON_DISK,
+#endif
 
        /* The stream resource is directly attached in an in-memory buffer
         * pointed to by @attached_buffer. */
@@ -146,6 +148,8 @@ struct wim_lookup_table_entry {
        
        u8 deferred : 1;
 
+       u8 no_progress : 1;
+
        /* (On-disk field)
         * Number of times this lookup table entry is referenced by dentries.
         * Unfortunately, this field is not always set correctly in Microsoft's
@@ -281,10 +285,12 @@ wim_resource_compression_type(const struct wim_lookup_table_entry *lte)
 static inline bool
 lte_filename_valid(const struct wim_lookup_table_entry *lte)
 {
-       return lte->resource_location == RESOURCE_IN_FILE_ON_DISK
+       return 0
        #ifdef __WIN32__
                || lte->resource_location == RESOURCE_WIN32
                || lte->resource_location == RESOURCE_WIN32_ENCRYPTED
+       #else
+               || lte->resource_location == RESOURCE_IN_FILE_ON_DISK
        #endif
        #ifdef WITH_FUSE
                || lte->resource_location == RESOURCE_IN_STAGING_FILE