summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-10-02 12:11:55 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-10-02 12:11:55 +0100
commit3666613e47b66d67a28bc06c6dcf678fe97eae50 (patch)
tree5c6249da25e3de5ed6746fea0773666972640330 /json-glib/json-gobject.h
parent8398253c76cf5dda23891b49b1aaa49e57d95a8d (diff)
downloadjson-glib-3666613e47b66d67a28bc06c6dcf678fe97eae50.tar.gz
Add GObject serialization support for JSON-GLib
This commit adds json-gobject.h and json_serialize_gobject() to JSON-GLib, to serialize a GObject instance into a JSON data stream.
Diffstat (limited to 'json-glib/json-gobject.h')
-rw-r--r--json-glib/json-gobject.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/json-glib/json-gobject.h b/json-glib/json-gobject.h
new file mode 100644
index 0000000..5f3b8b4
--- /dev/null
+++ b/json-glib/json-gobject.h
@@ -0,0 +1,33 @@
+/* json-gobject.h - JSON GObject integration
+ *
+ * This file is part of JSON-GLib
+ * Copyright (C) 2007 OpenedHand Ltd.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * Author:
+ * Emmanuele Bassi <ebassi@openedhand.com>
+ */
+
+#ifndef __JSON_GOBJECT_H__
+#define __JSON_GOBJECT_H__
+
+#include <json-glib/json-types.h>
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+gchar *json_serialize_gobject (GObject *gobject,
+ gsize *length);
+
+G_END_DECLS
+
+#endif /* __JSON_GOBJECT_H__ */