diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-11 12:01:22 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-17 08:49:40 -0600 |
commit | 1fd825f785975a430fbbaff7d80694cc7504360e (patch) | |
tree | ccf2103f2fd303e2c0910fb4037a512a6010099a /qjson.h | |
parent | 21f800d340ae080435f08e762d7b2868204c3772 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |