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