blob: 7fce742c40080f3b00ad68d5dd4a5b6d782d32bc [file] [log] [blame]
Anthony Liguorib4748b92009-11-11 10:42:41 -06001/*
2 * QObject JSON integration
3 *
4 * Copyright IBM, Corp. 2009
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 *
12 */
13
14#ifndef QJSON_H
15#define QJSON_H
16
17#include "qobject.h"
Anthony Liguori1fd825f2009-11-11 12:01:22 -060018#include "qstring.h"
Anthony Liguorib4748b92009-11-11 10:42:41 -060019
20QObject *qobject_from_json(const char *string);
21QObject *qobject_from_jsonf(const char *string, ...)
22 __attribute__((__format__ (__printf__, 1, 2)));
23
Anthony Liguori1fd825f2009-11-11 12:01:22 -060024QString *qobject_to_json(const QObject *obj);
25
Anthony Liguorib4748b92009-11-11 10:42:41 -060026#endif /* QJSON_H */