summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2009-10-28 16:05:19 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-10-28 16:22:06 +0000
commit00b4d200849e232cd904d23d3593d6f95252b483 (patch)
tree802f6f6e4649fc9a1daa902bf7bfe6dc7c7e95f0 /json-glib/json-gobject.h
parentfc0607c740b153acc96e4df12a12b042e08e831b (diff)
downloadjson-glib-00b4d200849e232cd904d23d3593d6f95252b483.tar.gz
gobject: Uniform JSON<->GObject mapping code
Rename json_gobject_new() to json_gobject_deserialize(), and json_gobject_dump() to json_gobject_serialize(); this maps the JSON GBoxed API. Also for consistency, change the serialize() return value and the deserialize() argument to be JsonNodes of type JSON_NODE_OBJECT.
Diffstat (limited to 'json-glib/json-gobject.h')
-rw-r--r--json-glib/json-gobject.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/json-glib/json-gobject.h b/json-glib/json-gobject.h
index a855fba..d294702 100644
--- a/json-glib/json-gobject.h
+++ b/json-glib/json-gobject.h
@@ -117,15 +117,15 @@ JsonNode *json_boxed_serialize (GType gboxed_t
gpointer json_boxed_deserialize (GType gboxed_type,
JsonNode *node);
-GObject * json_gobject_new (GType gtype,
- JsonObject *object);
-JsonObject *json_gobject_dump (GObject *gobject);
+JsonNode *json_gobject_serialize (GObject *gobject);
+GObject * json_gobject_deserialize (GType gtype,
+ JsonNode *node);
-GObject * json_construct_gobject (GType gtype,
+GObject * json_construct_gobject (GType gtype,
const gchar *data,
gsize length,
GError **error);
-gchar * json_serialize_gobject (GObject *gobject,
+gchar * json_serialize_gobject (GObject *gobject,
gsize *length) G_GNUC_MALLOC;
G_END_DECLS