u64 original_size;
};
+struct resource_entry_disk {
+ u8 size[7];
+ u8 flags;
+ le64 offset;
+ le64 original_size;
+} _packed_attribute;
/* Flags for the `flags' field of the struct resource_entry structure. */
u64 size, consume_data_callback_t cb, void *ctx_or_buf,
int flags);
-extern const void *
-get_resource_entry(const void *p, struct resource_entry *entry);
+extern void
+get_resource_entry(const struct resource_entry_disk *disk_entry,
+ struct resource_entry *entry);
-extern void *
-put_resource_entry(void *p, const struct resource_entry *entry);
+extern void
+put_resource_entry(const struct resource_entry *entry,
+ struct resource_entry_disk *disk_entry);
extern int
read_partial_wim_resource_into_buf(const struct wim_lookup_table_entry *lte,
sha1_resource(struct wim_lookup_table_entry *lte);
extern int
-copy_resource(struct wim_lookup_table_entry *lte, void *w);
+copy_resource(struct wim_lookup_table_entry *lte, void *wim);
extern int
-read_metadata_resource(WIMStruct *w,
+read_metadata_resource(WIMStruct *wim,
struct wim_image_metadata *image_metadata);
extern int
-write_metadata_resource(WIMStruct *w);
+write_metadata_resource(WIMStruct *wim);
#endif /* _WIMLIB_RESOURCE_H */