Anthony Liguori | b4748b9 | 2009-11-11 10:42:41 -0600 | [diff] [blame] | 1 | /* |
| 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 Capitulino | 8ff5a7d | 2009-11-18 23:05:24 -0200 | [diff] [blame] | 17 | #include <stdarg.h> |
Anthony Liguori | b4748b9 | 2009-11-11 10:42:41 -0600 | [diff] [blame] | 18 | #include "qobject.h" |
Anthony Liguori | 1fd825f | 2009-11-11 12:01:22 -0600 | [diff] [blame] | 19 | #include "qstring.h" |
Anthony Liguori | b4748b9 | 2009-11-11 10:42:41 -0600 | [diff] [blame] | 20 | |
Stefan Weil | 8b7968f | 2010-09-23 21:28:05 +0200 | [diff] [blame] | 21 | QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0); |
Stefan Weil | e5924d8 | 2010-09-23 21:28:03 +0200 | [diff] [blame] | 22 | QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); |
Stefan Weil | 8b7968f | 2010-09-23 21:28:05 +0200 | [diff] [blame] | 23 | QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0); |
Anthony Liguori | b4748b9 | 2009-11-11 10:42:41 -0600 | [diff] [blame] | 24 | |
Anthony Liguori | 1fd825f | 2009-11-11 12:01:22 -0600 | [diff] [blame] | 25 | QString *qobject_to_json(const QObject *obj); |
Daniel P. Berrange | 212b600 | 2010-06-07 15:42:14 +0100 | [diff] [blame] | 26 | QString *qobject_to_json_pretty(const QObject *obj); |
Anthony Liguori | 1fd825f | 2009-11-11 12:01:22 -0600 | [diff] [blame] | 27 | |
Anthony Liguori | b4748b9 | 2009-11-11 10:42:41 -0600 | [diff] [blame] | 28 | #endif /* QJSON_H */ |