summaryrefslogtreecommitdiff
path: root/json-glib/json-private.h
blob: 962ea7ba2b5cc6109838feba492a35e37bcd524f (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
#ifndef __JSON_PRIVATE_H__
#define __JSON_PRIVATE_H__

#include <glib-object.h>
#include <json-glib/json-types.h>

G_BEGIN_DECLS

JsonObject *json_object_new            (void);
void        json_object_add_member     (JsonObject   *object,
                                        const gchar  *member_name,
                                        const GValue *value);

JsonArray * json_array_new             (void);
JsonArray * json_array_sized_new       (guint         n_elements);
void        json_array_append_element  (JsonArray    *array,
                                        const GValue *value);
void        json_array_prepend_element (JsonArray    *array,
                                        const GValue *value);
void        json_array_insert_element  (JsonArray    *array,
                                        gint          index_,
                                        const GValue *value);

G_END_DECLS

#endif /* __JSON_PRIVATE_H__ */