Changeset 2b20947 in mainline for uspace/lib/libc/include/libadt/hash_table.h
- Timestamp:
- 2007-09-15T14:47:57Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0edf5f
- Parents:
- d0b72c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/libadt/hash_table.h
rd0b72c4 r2b20947 56 56 /** Hash function. 57 57 * 58 * @param key Array of keys needed to compute hash index. All keys must be passed. 58 * @param key Array of keys needed to compute hash index. All keys 59 * must be passed. 59 60 * 60 * @return 61 * @return Index into hash table. 61 62 */ 62 63 hash_index_t (* hash)(unsigned long key[]); … … 64 65 /** Hash table item comparison function. 65 66 * 66 * @param key Array of keys that will be compared with item. It is not necessary to pass all keys. 67 * @param key Array of keys that will be compared with item. It is 68 * not necessary to pass all keys. 67 69 * 68 * @return true if the keys match, false otherwise.70 * @return true if the keys match, false otherwise. 69 71 */ 70 72 int (*compare)(unsigned long key[], hash_count_t keys, link_t *item); … … 72 74 /** Hash table item removal callback. 73 75 * 74 * @param item Item that was removed from the hash table.76 * @param item Item that was removed from the hash table. 75 77 */ 76 78 void (*remove_callback)(link_t *item);
Note:
See TracChangeset
for help on using the changeset viewer.