Subversion Repositories HelenOS

Rev

Rev 2526 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2526 Rev 2595
Line 76... Line 76...
76
     * @param item  Item that was removed from the hash table.
76
     * @param item  Item that was removed from the hash table.
77
     */
77
     */
78
    void (*remove_callback)(link_t *item);
78
    void (*remove_callback)(link_t *item);
79
};
79
};
80
 
80
 
81
#define hash_table_get_instance(item, type, member) list_get_instance((item), type, member)
81
#define hash_table_get_instance(item, type, member) \
-
 
82
    list_get_instance((item), type, member)
82
 
83
 
83
extern int hash_table_create(hash_table_t *h, hash_count_t m, hash_count_t max_keys, hash_table_operations_t *op);
84
extern int hash_table_create(hash_table_t *, hash_count_t, hash_count_t,
-
 
85
    hash_table_operations_t *);
84
extern void hash_table_insert(hash_table_t *h, unsigned long key[], link_t *item);
86
extern void hash_table_insert(hash_table_t *, unsigned long [], link_t *);
85
extern link_t *hash_table_find(hash_table_t *h, unsigned long key[]);
87
extern link_t *hash_table_find(hash_table_t *, unsigned long []);
86
extern void hash_table_remove(hash_table_t *h, unsigned long key[], hash_count_t keys);
88
extern void hash_table_remove(hash_table_t *, unsigned long [], hash_count_t);
87
 
89
 
88
#endif
90
#endif
89
 
91
 
90
/** @}
92
/** @}
91
 */
93
 */