summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2009-10-27 18:10:19 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-10-27 18:10:19 +0000
commit373fa3d9b73391b38620fbd9ce9b69f358e5f4c8 (patch)
tree8bd7fefabf78701bea1180af82ac5ec6647cbcf9 /json-glib/json-gobject.h
parent85f7a8e8206168d95b3ef9c02aa584f0fae5b37e (diff)
downloadjson-glib-373fa3d9b73391b38620fbd9ce9b69f358e5f4c8.tar.gz
gobject: Make GObject<->JsonObject functions public
The functions mapping a GObject to and from a JsonObject should be public, as they can be used by parsers.
Diffstat (limited to 'json-glib/json-gobject.h')
-rw-r--r--json-glib/json-gobject.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/json-glib/json-gobject.h b/json-glib/json-gobject.h
index 207db52..a855fba 100644
--- a/json-glib/json-gobject.h
+++ b/json-glib/json-gobject.h
@@ -117,12 +117,16 @@ JsonNode *json_boxed_serialize (GType gboxed_t
gpointer json_boxed_deserialize (GType gboxed_type,
JsonNode *node);
-GObject *json_construct_gobject (GType gtype,
- const gchar *data,
- gsize length,
- GError **error);
-gchar * json_serialize_gobject (GObject *gobject,
- gsize *length) G_GNUC_MALLOC;
+GObject * json_gobject_new (GType gtype,
+ JsonObject *object);
+JsonObject *json_gobject_dump (GObject *gobject);
+
+GObject * json_construct_gobject (GType gtype,
+ const gchar *data,
+ gsize length,
+ GError **error);
+gchar * json_serialize_gobject (GObject *gobject,
+ gsize *length) G_GNUC_MALLOC;
G_END_DECLS