summaryrefslogtreecommitdiff
path: root/json-glib/json-private.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 21:07:12 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 21:07:12 +0100
commitc11ebd32f73a1e21d6097bf9eba8e12f7e35497a (patch)
tree94dee657fce374bb1b44c3362ead937aab7fbb29 /json-glib/json-private.h
parentf661c7e1a04c2fb198279030c9dd812f357240a3 (diff)
downloadjson-glib-c11ebd32f73a1e21d6097bf9eba8e12f7e35497a.tar.gz
Add JsonData, an opaque container for JSON data types
JsonData is like GValue, but it stores JSON data types (objects and arrays) and allows us to retrieve them safely. This way we can actually know the type of the objects returned by the parser and by the other object walking functions.
Diffstat (limited to 'json-glib/json-private.h')
-rw-r--r--json-glib/json-private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/json-glib/json-private.h b/json-glib/json-private.h
index 962ea7b..76d27d0 100644
--- a/json-glib/json-private.h
+++ b/json-glib/json-private.h
@@ -6,6 +6,13 @@
G_BEGIN_DECLS
+JsonData *json_data_new (JsonDataType type);
+void json_data_set_object (JsonData *data,
+ JsonObject *object);
+void json_data_set_array (JsonData *data,
+ JsonArray *array);
+void json_data_free (JsonData *data);
+
JsonObject *json_object_new (void);
void json_object_add_member (JsonObject *object,
const gchar *member_name,