+static inline u64 wim_resource_size(const struct lookup_table_entry *lte)
+{
+ return lte->resource_entry.original_size;
+}
+
+static inline u64
+wim_resource_compressed_size(const struct lookup_table_entry *lte)
+{
+ return lte->resource_entry.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->resource_location != RESOURCE_IN_WIM)
+ return WIM_COMPRESSION_TYPE_NONE;
+ return wimlib_get_compression_type(lte->wim);
+}
+