no look
This commit is contained in:
parent
0962392e70
commit
7f4bf44f58
1 changed files with 12 additions and 0 deletions
|
@ -2,9 +2,21 @@
|
||||||
#define GLV_UTIL_CONTAINERS_H
|
#define GLV_UTIL_CONTAINERS_H
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
void* key;
|
||||||
|
void* value;
|
||||||
|
} glv_pair_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
glv_pair_t** buckets;
|
||||||
|
int* bucket_lengths;
|
||||||
|
int bucket_count;
|
||||||
|
int pair_count;
|
||||||
} glv_map_t;
|
} glv_map_t;
|
||||||
|
|
||||||
glv_map_t* glv_map_create();
|
glv_map_t* glv_map_create();
|
||||||
|
glv_map_t* glv_map_create_ex(int initial_size);
|
||||||
|
|
||||||
|
void glv_map_destroy(glv_map_t* map);
|
||||||
|
void glv_map_destroy_dealloc(glv_map_t* map);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Reference in a new issue