summaryrefslogtreecommitdiffstats
path: root/include/qapi/qmp
diff options
context:
space:
mode:
authorMarkus Armbruster2018-08-06 08:53:28 +0200
committerMarkus Armbruster2018-08-16 08:42:06 +0200
commit4ff184689bf3d22b01c0d00c2bf6bf9595ff9b48 (patch)
tree07ff270fd1b065f36d5a9e835d7095740b3c129a /include/qapi/qmp
parentqobject: Replace qobject_from_jsonf() by qobject_from_jsonf_nofail() (diff)
downloadqemu-4ff184689bf3d22b01c0d00c2bf6bf9595ff9b48.tar.gz
qemu-4ff184689bf3d22b01c0d00c2bf6bf9595ff9b48.tar.xz
qemu-4ff184689bf3d22b01c0d00c2bf6bf9595ff9b48.zip
qobject: New qobject_from_vjsonf_nofail(), qdict_from_vjsonf_nofail()
Every printf()-like function sooner or later needs its vprintf()-like buddy. The next commit will need qobject_from_jsonf_nofail()'s buddy, and qdict_from_jsonf_nofail()'s buddy will be used later in this series. Add both. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180806065344.7103-8-armbru@redhat.com>
Diffstat (limited to 'include/qapi/qmp')
-rw-r--r--include/qapi/qmp/qjson.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qapi/qmp/qjson.h b/include/qapi/qmp/qjson.h
index dc509d51ae..dce78583dc 100644
--- a/include/qapi/qmp/qjson.h
+++ b/include/qapi/qmp/qjson.h
@@ -18,8 +18,12 @@ QObject *qobject_from_json(const char *string, Error **errp);
QObject *qobject_from_jsonv(const char *string, va_list *ap, Error **errp)
GCC_FMT_ATTR(1, 0);
+QObject *qobject_from_vjsonf_nofail(const char *string, va_list ap)
+ GCC_FMT_ATTR(1, 0);
QObject *qobject_from_jsonf_nofail(const char *string, ...)
GCC_FMT_ATTR(1, 2);
+QDict *qdict_from_vjsonf_nofail(const char *string, va_list ap)
+ GCC_FMT_ATTR(1, 0);
QDict *qdict_from_jsonf_nofail(const char *string, ...)
GCC_FMT_ATTR(1, 2);