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