From 1fd825f785975a430fbbaff7d80694cc7504360e Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 11 Nov 2009 12:01:22 -0600 Subject: 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 --- qjson.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qjson.h') 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 */ -- cgit v1.2.1