summaryrefslogtreecommitdiff
path: root/scanner/attribute_kv.h
blob: d1e69d24167aec83bef84218044aa8d2f4ffa938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <uuid/uuid.h>
#include <stellar/scanner.h>

#ifdef __cplusplus
extern "C"
{
#endif

struct attribute_kv;

struct attribute_kv *attribute_kv_new(void);
void attribute_kv_free(struct attribute_kv *attr);

void attribute_kv_set_integer(struct attribute_kv *attr, enum ATTRIBUTE_KV_INDEX index, const char *key, size_t key_sz, long long value);
void attribute_kv_set_string(struct attribute_kv *attr, enum ATTRIBUTE_KV_INDEX index, const char *key, size_t key_sz, const char *value, size_t value_sz);

const struct utable_kv *attribute_kv_get(struct attribute_kv *attr, enum ATTRIBUTE_KV_INDEX index);

#ifdef __cplusplus
}
#endif