X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwimlib_internal.h;h=abd0b86c11be76d4f2222ce7732a403671ea0914;hp=b4ce282f37f863b05f4619a05af80fb005645c61;hb=de2db344b0d8a48b52c4cfaf0dbf35da9ffc6678;hpb=9f4d9b49a3e0bf5c62193a1c2c896d0c9df5f686 diff --git a/src/wimlib_internal.h b/src/wimlib_internal.h index b4ce282f..abd0b86c 100644 --- a/src/wimlib_internal.h +++ b/src/wimlib_internal.h @@ -281,12 +281,13 @@ static inline struct dentry *wim_root_dentry(WIMStruct *w) return w->image_metadata[w->current_image - 1].root_dentry; } -static inline struct dentry **wim_root_dentry_p(WIMStruct *w) +static inline struct wim_security_data * +wim_security_data(WIMStruct *w) { - return &w->image_metadata[w->current_image - 1].root_dentry; + return w->image_metadata[w->current_image - 1].security_data; } - -static inline struct wim_security_data *wim_security_data(WIMStruct *w) +static inline const struct wim_security_data * +wim_const_security_data(const WIMStruct *w) { return w->image_metadata[w->current_image - 1].security_data; } @@ -303,7 +304,8 @@ static inline int resource_is_compressed(const struct resource_entry *entry) return (entry->flags & WIM_RESHDR_FLAG_COMPRESSED); } -static inline struct image_metadata *wim_get_current_image_metadata(WIMStruct *w) +static inline struct image_metadata * +wim_get_current_image_metadata(WIMStruct *w) { return &w->image_metadata[w->current_image - 1]; }