X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=include%2Fwimlib%2Flookup_table.h;h=4158f1578f1a9f79289d26eccb311803b3356c7d;hp=9c727507c1682c5ecc112e298044e04d854655dd;hb=8895e346ab7a4df65c980ba435d1e5d1c2654d3f;hpb=6c8edf0f36a23457829c7116efd5d5434c1e0ede diff --git a/include/wimlib/lookup_table.h b/include/wimlib/lookup_table.h index 9c727507..4158f157 100644 --- a/include/wimlib/lookup_table.h +++ b/include/wimlib/lookup_table.h @@ -213,9 +213,19 @@ struct wim_lookup_table_entry { /* Links streams being written to the WIM. */ struct list_head write_streams_list; - /* Metadata for this stream in the WIM being written. - */ - struct wim_reshdr out_reshdr; + union { + /* Metadata for this stream in the WIM being + * written. */ + struct wim_reshdr out_reshdr; + + struct { + /* Name under which this stream is being + * sorted; used only when sorting + * streams for solid compression. */ + utf16lechar *solid_sort_name; + size_t solid_sort_name_nbytes; + }; + }; }; /* Used temporarily during extraction. This is an array of @@ -339,6 +349,9 @@ extern int sort_stream_list_by_sequential_order(struct list_head *stream_list, size_t list_head_offset); +extern int +cmp_streams_by_sequential_order(const void *p1, const void *p2); + /* Utility functions */ extern int