Merge b1-r0_2_0-pre10.
[chise/libchise.git] / chise-name.h
1 #ifndef _CHISE_NAME_H
2 #define _CHISE_NAME_H
3
4 typedef struct CHISE_HASH_TABLE_ENTRY CHISE_HASH_TABLE_ENTRY;
5 typedef struct CHISE_HASH_TABLE CHISE_HASH_TABLE;
6
7 typedef CHISE_HASH_TABLE CHISE_NAME_TABLE;
8 typedef CHISE_HASH_TABLE_ENTRY CHISE_NAME_TABLE_ENTRY;
9
10 CHISE_NAME_TABLE* chise_make_name_table (void);
11 void chise_destroy_name_table (CHISE_NAME_TABLE* table);
12 int chise_name_table_put (CHISE_NAME_TABLE* table,
13                           const unsigned char *key, void *value);
14 void* chise_name_table_get (CHISE_NAME_TABLE* table, const unsigned char *key);
15 int chise_name_table_grow (CHISE_NAME_TABLE* table);
16
17 #endif /* !_CHISE_NAME_H */