X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Flookup_table.h;fp=src%2Flookup_table.h;h=eacd9aa4596dfae4441de5ec9fb338f2973f1048;hp=dad230f7ad58ab3443ad66dbd207e758c9aee05c;hb=a8972bde4b080d2dd33a7500705d431b0f1fe901;hpb=92d96f9e2db42196a778b727cfa91d18a5cc6f49 diff --git a/src/lookup_table.h b/src/lookup_table.h index dad230f7..eacd9aa4 100644 --- a/src/lookup_table.h +++ b/src/lookup_table.h @@ -274,6 +274,7 @@ static inline void lookup_table_unlink(struct wim_lookup_table *table, struct wim_lookup_table_entry *lte) { hlist_del(<e->hash_list); + wimlib_assert(table->num_entries != 0); table->num_entries--; } @@ -295,6 +296,15 @@ for_lookup_table_entry(struct wim_lookup_table *table, int (*visitor)(struct wim_lookup_table_entry *, void *), void *arg); +extern int +sort_stream_list_by_wim_position(struct list_head *stream_list); + +extern int +for_lookup_table_entry_pos_sorted(struct wim_lookup_table *table, + int (*visitor)(struct wim_lookup_table_entry *, + void *), + void *arg); + extern struct wim_lookup_table_entry * __lookup_resource(const struct wim_lookup_table *table, const u8 hash[]);