X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fmetadata.h;h=8a527ac3a860125e4b559ee50ff23abaa0f09073;hb=a92076249aa233d18ecc378062e654729e27c0d8;hp=6e4212044d5f730a52e868702ebf17538325dc43;hpb=23ea88c8b6eae44e1a50b104f8a5d3314b59c4e9;p=wimlib diff --git a/include/wimlib/metadata.h b/include/wimlib/metadata.h index 6e421204..8a527ac3 100644 --- a/include/wimlib/metadata.h +++ b/include/wimlib/metadata.h @@ -70,23 +70,18 @@ wim_get_current_security_data(WIMStruct *wim) return wim_get_current_image_metadata(wim)->security_data; } -/* Iterate over each inode in a WIM image that has not yet been hashed */ +/* Iterate over each inode in a WIM image */ #define image_for_each_inode(inode, imd) \ - list_for_each_entry(inode, &imd->inode_list, i_list) + list_for_each_entry(inode, &(imd)->inode_list, i_list) /* Iterate over each stream in a WIM image that has not yet been hashed */ #define image_for_each_unhashed_stream(lte, imd) \ - list_for_each_entry(lte, &imd->unhashed_streams, unhashed_list) + list_for_each_entry(lte, &(imd)->unhashed_streams, unhashed_list) /* Iterate over each stream in a WIM image that has not yet been hashed (safe * against stream removal) */ #define image_for_each_unhashed_stream_safe(lte, tmp, imd) \ - list_for_each_entry_safe(lte, tmp, &imd->unhashed_streams, unhashed_list) - -extern void -destroy_image_metadata(struct wim_image_metadata *imd, - struct wim_lookup_table *table, - bool free_metadata_lte); + list_for_each_entry_safe(lte, tmp, &(imd)->unhashed_streams, unhashed_list) extern void put_image_metadata(struct wim_image_metadata *imd, @@ -98,7 +93,4 @@ append_image_metadata(WIMStruct *wim, struct wim_image_metadata *imd); extern struct wim_image_metadata * new_image_metadata(void) _malloc_attribute; -extern struct wim_image_metadata ** -new_image_metadata_array(unsigned num_images) _malloc_attribute; - #endif /* _WIMLIB_METADATA_H */