RPA Toolkit
ec11da49d4e4ff51747761cff8a7d650353a90e8
[rpatk.git] / rlib / rmap.h
1 #ifndef _RMAP_H_
2 #define _RMAP_H_
3
4 #include "rcarray.h"
5 #include "rhash.h"
6 #include "rlist.h"
7 #include "rstring.h"
8 #include "robject.h"
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14
15 typedef struct rmap_s {
16         robject_t obj;
17         rhash_t *hash;
18         rcarray_t *members;
19         rlist_t active;
20         rlist_t inactive;
21 } rmap_t;
22
23
24 rmap_t *r_map_create(ruint elt_size);
25 void r_map_destroy(rmap_t *array);
26
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif /* _RMAP_H_ */