Changeset b3f8fb7 in mainline for kernel/generic/include/adt/hash_table.h
- Timestamp:
- 2007-01-28T13:25:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e8c1a5
- Parents:
- 1ba41c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/adt/hash_table.h
r1ba41c5 rb3f8fb7 38 38 #include <adt/list.h> 39 39 #include <arch/types.h> 40 #include <typedefs.h>41 42 /** Hash table structure. */43 struct hash_table {44 link_t *entry;45 count_t entries;46 count_t max_keys;47 hash_table_operations_t *op;48 };49 40 50 41 /** Set of operations for hash table. */ 51 struct hash_table_operations{42 typedef struct { 52 43 /** Hash function. 53 44 * … … 71 62 */ 72 63 void (*remove_callback)(link_t *item); 73 }; 64 } hash_table_operations_t; 65 66 /** Hash table structure. */ 67 typedef struct { 68 link_t *entry; 69 count_t entries; 70 count_t max_keys; 71 hash_table_operations_t *op; 72 } hash_table_t; 74 73 75 74 #define hash_table_get_instance(item, type, member) list_get_instance((item), type, member)
Note:
See TracChangeset
for help on using the changeset viewer.