return lte->resource_entry.original_size;
}
+/*
+ * XXX Probably should store the compression type directly in the lookup table
+ * entry
+ */
static inline int
wim_resource_compression_type(const struct lookup_table_entry *lte)
{
if (!(lte->resource_entry.flags & WIM_RESHDR_FLAG_COMPRESSED)
- || !lte->wim)
+ || lte->resource_location != RESOURCE_IN_WIM)
return WIM_COMPRESSION_TYPE_NONE;
return wimlib_get_compression_type(lte->wim);
}
extern int zero_out_refcnts(struct lookup_table_entry *entry, void *ignore);
-extern void print_lookup_table_entry(struct lookup_table_entry *entry);
+extern void print_lookup_table_entry(const struct lookup_table_entry *entry);
extern int read_lookup_table(WIMStruct *w);