root / qjson.h @ 3c85e74f
History | View | Annotate | Download (708 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 | 8b7968f7 | Stefan Weil | QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0); |
22 | e5924d89 | Stefan Weil | QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); |
23 | 8b7968f7 | Stefan Weil | QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0); |
24 | b4748b9b | Anthony Liguori | |
25 | 1fd825f7 | Anthony Liguori | QString *qobject_to_json(const QObject *obj);
|
26 | 212b6008 | Daniel P. Berrange | QString *qobject_to_json_pretty(const QObject *obj);
|
27 | 1fd825f7 | Anthony Liguori | |
28 | b4748b9b | Anthony Liguori | #endif /* QJSON_H */ |