blob: 1cfc655eae2d882d9c46abcefcbaeeec833c0e69 (
plain)
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
|
#ifndef __JSON_PRIVATE_H__
#define __JSON_PRIVATE_H__
#include <glib-object.h>
#include "json-types.h"
G_BEGIN_DECLS
JsonNode * json_node_new (JsonNodeType type);
JsonNode * json_node_copy (JsonNode *node);
void json_node_set_object (JsonNode *node,
JsonObject *object);
void json_node_set_array (JsonNode *node,
JsonArray *array);
void json_node_set_value (JsonNode *node,
const GValue *value);
void json_node_free (JsonNode *node);
JsonObject * json_object_new (void);
void json_object_add_member (JsonObject *object,
const gchar *member_name,
JsonNode *node);
JsonArray * json_array_new (void);
JsonArray * json_array_sized_new (guint n_elements);
void json_array_add_element (JsonArray *array,
JsonNode *node);
G_END_DECLS
#endif /* __JSON_PRIVATE_H__ */
|