Changes in kernel/generic/include/adt/hash_table.h [96b02eb9:98000fb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/hash_table.h
r96b02eb9 r98000fb 37 37 38 38 #include <adt/list.h> 39 #include < typedefs.h>39 #include <arch/types.h> 40 40 41 41 /** Set of operations for hash table. */ … … 48 48 * @return Index into hash table. 49 49 */ 50 size_t (* hash)( sysarg_t key[]);50 size_t (* hash)(unative_t key[]); 51 51 52 52 /** Hash table item comparison function. … … 57 57 * @return true if the keys match, false otherwise. 58 58 */ 59 bool (*compare)( sysarg_t key[], size_t keys, link_t *item);59 bool (*compare)(unative_t key[], size_t keys, link_t *item); 60 60 61 61 /** Hash table item removal callback. … … 79 79 extern void hash_table_create(hash_table_t *h, size_t m, size_t max_keys, 80 80 hash_table_operations_t *op); 81 extern void hash_table_insert(hash_table_t *h, sysarg_t key[], link_t *item);82 extern link_t *hash_table_find(hash_table_t *h, sysarg_t key[]);83 extern void hash_table_remove(hash_table_t *h, sysarg_t key[], size_t keys);81 extern void hash_table_insert(hash_table_t *h, unative_t key[], link_t *item); 82 extern link_t *hash_table_find(hash_table_t *h, unative_t key[]); 83 extern void hash_table_remove(hash_table_t *h, unative_t key[], size_t keys); 84 84 85 85 #endif
Note:
See TracChangeset
for help on using the changeset viewer.