blob: 1190d8a86c2b2edeb787375ffd13aadf66e7a55c [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
Luiz Capitulino8ff5a7d2009-11-18 23:05:24 -020017#include <stdarg.h>
Alon Levy156b12d2012-02-24 23:22:03 +020018#include "compiler.h"
Anthony Liguorib4748b92009-11-11 10:42:41 -060019#include "qobject.h"
Anthony Liguori1fd825f2009-11-11 12:01:22 -060020#include "qstring.h"
Anthony Liguorib4748b92009-11-11 10:42:41 -060021
Stefan Weil8b7968f2010-09-23 21:28:05 +020022QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0);
Stefan Weile5924d82010-09-23 21:28:03 +020023QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
Stefan Weil8b7968f2010-09-23 21:28:05 +020024QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
Anthony Liguorib4748b92009-11-11 10:42:41 -060025
Anthony Liguori1fd825f2009-11-11 12:01:22 -060026QString *qobject_to_json(const QObject *obj);
Daniel P. Berrange212b6002010-06-07 15:42:14 +010027QString *qobject_to_json_pretty(const QObject *obj);
Anthony Liguori1fd825f2009-11-11 12:01:22 -060028
Anthony Liguorib4748b92009-11-11 10:42:41 -060029#endif /* QJSON_H */