Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / qapi / qmp / qjson.h
blob7bd8d2de1b336c4a8ebf4e5804edc3a5d45d089d
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 QObject *qobject_from_json(const char *string, Error **errp);
19 QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
20 G_GNUC_PRINTF(1, 0);
21 QObject *qobject_from_jsonf_nofail(const char *string, ...)
22 G_GNUC_PRINTF(1, 2);
23 QDict *qdict_from_vjsonf_nofail(const char *string, va_list ap)
24 G_GNUC_PRINTF(1, 0);
25 QDict *qdict_from_jsonf_nofail(const char *string, ...)
26 G_GNUC_PRINTF(1, 2);
28 GString *qobject_to_json(const QObject *obj);
29 GString *qobject_to_json_pretty(const QObject *obj, bool pretty);
31 #endif /* QJSON_H */