1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef GH_
18#define GH_
19#include <dspbridge/host_os.h>
20
21extern struct gh_t_hash_tab *gh_create(u16 max_bucket, u16 val_size,
22 u16(*hash) (void *, u16),
23 bool(*match) (void *, void *),
24 void (*delete) (void *));
25extern void gh_delete(struct gh_t_hash_tab *hash_tab);
26extern void *gh_find(struct gh_t_hash_tab *hash_tab, void *key);
27extern void *gh_insert(struct gh_t_hash_tab *hash_tab, void *key, void *value);
28#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
29void gh_iterate(struct gh_t_hash_tab *hash_tab,
30 void (*callback)(void *, void *), void *user_data);
31#endif
32#endif
33