xref: /qemu/include/qobject/qjson.h (revision aa830cdc28edb69c1fe81c8fd9471ab288ad0926)
1b4748b9bSAnthony Liguori /*
2b4748b9bSAnthony Liguori  * QObject JSON integration
3b4748b9bSAnthony Liguori  *
4b4748b9bSAnthony Liguori  * Copyright IBM, Corp. 2009
5b4748b9bSAnthony Liguori  *
6b4748b9bSAnthony Liguori  * Authors:
7b4748b9bSAnthony Liguori  *  Anthony Liguori   <aliguori@us.ibm.com>
8b4748b9bSAnthony Liguori  *
9b4748b9bSAnthony Liguori  * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
10b4748b9bSAnthony Liguori  * See the COPYING.LIB file in the top-level directory.
11b4748b9bSAnthony Liguori  *
12b4748b9bSAnthony Liguori  */
13b4748b9bSAnthony Liguori 
14b4748b9bSAnthony Liguori #ifndef QJSON_H
15b4748b9bSAnthony Liguori #define QJSON_H
16b4748b9bSAnthony Liguori 
178ff5a7d3SLuiz Capitulino #include <stdarg.h>
181de7afc9SPaolo Bonzini #include "qemu/compiler.h"
197b1b5d19SPaolo Bonzini #include "qapi/qmp/qobject.h"
207b1b5d19SPaolo Bonzini #include "qapi/qmp/qstring.h"
21b4748b9bSAnthony Liguori 
22*aa830cdcSPeter Maydell QObject *qobject_from_json(const char *string);
23e5924d89SStefan Weil QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2);
248b7968f7SStefan Weil QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
25b4748b9bSAnthony Liguori 
261fd825f7SAnthony Liguori QString *qobject_to_json(const QObject *obj);
27212b6008SDaniel P. Berrange QString *qobject_to_json_pretty(const QObject *obj);
281fd825f7SAnthony Liguori 
29b4748b9bSAnthony Liguori #endif /* QJSON_H */
30