Rizin
unix-like reverse engineering framework and cli tools
rz_str_constpool.h
Go to the documentation of this file.
1 #ifndef RZ_STR_CONSTPOOL_H
2 #define RZ_STR_CONSTPOOL_H
3 
4 #include <rz_types.h>
5 #include <sdbht.h>
6 
7 #include <stdbool.h>
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*
14  * RzStrConstPool is a pool of constant strings.
15  * References to strings will be valid as long as the RzStrConstPool is alive.
16  */
17 
18 typedef struct rz_str_constpool_t {
19  HtPP *ht;
21 
24 RZ_API const char *rz_str_constpool_get(RzStrConstPool *pool, const char *str);
25 
26 #ifdef __cplusplus
27 }
28 #endif
29 
30 #endif // RZ_STR_CONSTPOOL_H
#define RZ_API
struct rz_str_constpool_t RzStrConstPool
RZ_API const char * rz_str_constpool_get(RzStrConstPool *pool, const char *str)
Definition: str_constpool.c:19
RZ_API void rz_str_constpool_fini(RzStrConstPool *pool)
Definition: str_constpool.c:15
RZ_API bool rz_str_constpool_init(RzStrConstPool *pool)
Definition: str_constpool.c:10