Statistics
| Branch: | Revision:

root / qjson.h @ 212b6008

History | View | Annotate | Download (702 Bytes)

1 b4748b9b Anthony Liguori
/*
2 b4748b9b Anthony Liguori
 * QObject JSON integration
3 b4748b9b Anthony Liguori
 *
4 b4748b9b Anthony Liguori
 * Copyright IBM, Corp. 2009
5 b4748b9b Anthony Liguori
 *
6 b4748b9b Anthony Liguori
 * Authors:
7 b4748b9b Anthony Liguori
 *  Anthony Liguori   <aliguori@us.ibm.com>
8 b4748b9b Anthony Liguori
 *
9 b4748b9b Anthony Liguori
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10 b4748b9b Anthony Liguori
 * See the COPYING.LIB file in the top-level directory.
11 b4748b9b Anthony Liguori
 *
12 b4748b9b Anthony Liguori
 */
13 b4748b9b Anthony Liguori
14 b4748b9b Anthony Liguori
#ifndef QJSON_H
15 b4748b9b Anthony Liguori
#define QJSON_H
16 b4748b9b Anthony Liguori
17 8ff5a7d3 Luiz Capitulino
#include <stdarg.h>
18 b4748b9b Anthony Liguori
#include "qobject.h"
19 1fd825f7 Anthony Liguori
#include "qstring.h"
20 b4748b9b Anthony Liguori
21 b4748b9b Anthony Liguori
QObject *qobject_from_json(const char *string);
22 b4748b9b Anthony Liguori
QObject *qobject_from_jsonf(const char *string, ...)
23 b4748b9b Anthony Liguori
    __attribute__((__format__ (__printf__, 1, 2)));
24 8ff5a7d3 Luiz Capitulino
QObject *qobject_from_jsonv(const char *string, va_list *ap);
25 b4748b9b Anthony Liguori
26 1fd825f7 Anthony Liguori
QString *qobject_to_json(const QObject *obj);
27 212b6008 Daniel P. Berrange
QString *qobject_to_json_pretty(const QObject *obj);
28 1fd825f7 Anthony Liguori
29 b4748b9b Anthony Liguori
#endif /* QJSON_H */