Monitor: Drop monitor_cmd_user_only()
[qemu-kvm.git] / qjson.h
blobcd60e0bbe57937c0e714bd04724f0eace6b6b309
1 /*
2 * QObject JSON integration
4 * Copyright IBM, Corp. 2009
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
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.
14 #ifndef QJSON_H
15 #define QJSON_H
17 #include <stdarg.h>
18 #include "qobject.h"
19 #include "qstring.h"
21 QObject *qobject_from_json(const char *string);
22 QObject *qobject_from_jsonf(const char *string, ...)
23 __attribute__((__format__ (__printf__, 1, 2)));
24 QObject *qobject_from_jsonv(const char *string, va_list *ap);
26 QString *qobject_to_json(const QObject *obj);
27 QString *qobject_to_json_pretty(const QObject *obj);
29 #endif /* QJSON_H */