-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_adders.h
52 lines (43 loc) · 843 Bytes
/
json_adders.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef JSON_ADDERS_H
#define JSON_ADDERS_H
bool
json_add_item(
struct json_t* const json,
const enum json_type_e type,
const char* const key,
void* value);
bool
json_add_int32(
struct json_t* const json,
const char* const key,
int32_t value);
bool
json_add_decimal(
struct json_t* const json,
const char* const key,
double value);
bool
json_add_bool(
struct json_t* const json,
const char* const key,
bool value);
bool
json_add_string(
struct json_t* const json,
const char* const key,
char* const value);
bool
json_add_object(
struct json_t* const json,
const char* const key,
struct json_t* const value);
bool
json_add_array(
struct json_t* const json,
const char* const key,
struct json_array_t* value);
bool
json_add_null(
struct json_t* const json,
const char* const key);
#endif