pulsar-client-cpp
string_map.h
1 
20 #pragma once
21 
22 #include <pulsar/defines.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef struct _pulsar_string_map pulsar_string_map_t;
29 
30 PULSAR_PUBLIC pulsar_string_map_t *pulsar_string_map_create();
31 PULSAR_PUBLIC void pulsar_string_map_free(pulsar_string_map_t *map);
32 
33 PULSAR_PUBLIC int pulsar_string_map_size(pulsar_string_map_t *map);
34 
35 PULSAR_PUBLIC void pulsar_string_map_put(pulsar_string_map_t *map, const char *key, const char *value);
36 
37 PULSAR_PUBLIC const char *pulsar_string_map_get(pulsar_string_map_t *map, const char *key);
38 
39 PULSAR_PUBLIC const char *pulsar_string_map_get_key(pulsar_string_map_t *map, int idx);
40 PULSAR_PUBLIC const char *pulsar_string_map_get_value(pulsar_string_map_t *map, int idx);
41 
42 #ifdef __cplusplus
43 }
44 #endif