Changeset 0c48e14 in mainline for uspace/lib/c/include/adt/hash_table.h
- Timestamp:
- 2019-02-24T15:45:40Z (6 years ago)
- Children:
- 91bef446
- Parents:
- 52b44c6
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 15:07:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-24 15:45:40)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/hash_table.h
r52b44c6 r0c48e14 53 53 54 54 /** Returns the hash of the key. */ 55 size_t (*key_hash)( void *key);55 size_t (*key_hash)(const void *key); 56 56 57 57 /** True if the items are equal (have the same lookup keys). */ … … 59 59 60 60 /** Returns true if the key is equal to the item's lookup key. */ 61 bool (*key_equal)( void *key, const ht_link_t *item);61 bool (*key_equal)(const void *key, const ht_link_t *item); 62 62 63 63 /** Hash table item removal callback. … … 94 94 extern void hash_table_insert(hash_table_t *, ht_link_t *); 95 95 extern bool hash_table_insert_unique(hash_table_t *, ht_link_t *); 96 extern ht_link_t *hash_table_find(const hash_table_t *, void *);96 extern ht_link_t *hash_table_find(const hash_table_t *, const void *); 97 97 extern ht_link_t *hash_table_find_next(const hash_table_t *, ht_link_t *, 98 98 ht_link_t *); 99 extern size_t hash_table_remove(hash_table_t *, void *);99 extern size_t hash_table_remove(hash_table_t *, const void *); 100 100 extern void hash_table_remove_item(hash_table_t *, ht_link_t *); 101 101 extern void hash_table_apply(hash_table_t *, bool (*)(ht_link_t *, void *),
Note:
See TracChangeset
for help on using the changeset viewer.