aboutsummaryrefslogtreecommitdiff
path: root/qjson.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-11-11 12:01:22 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:40 -0600
commit1fd825f785975a430fbbaff7d80694cc7504360e (patch)
treeccf2103f2fd303e2c0910fb4037a512a6010099a /qjson.h
parent21f800d340ae080435f08e762d7b2868204c3772 (diff)
Provide marshalling mechanism for json
This introduces qobject_to_json which will convert a QObject to a JSON string representation. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qjson.h')
-rw-r--r--qjson.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qjson.h b/qjson.h
index 38be643df0..7fce742c40 100644
--- a/qjson.h
+++ b/qjson.h
@@ -15,9 +15,12 @@
#define QJSON_H
#include "qobject.h"
+#include "qstring.h"
QObject *qobject_from_json(const char *string);
QObject *qobject_from_jsonf(const char *string, ...)
__attribute__((__format__ (__printf__, 1, 2)));
+QString *qobject_to_json(const QObject *obj);
+
#endif /* QJSON_H */