mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 23:49:36 +00:00
qapi: Consolidate QMP input visitor creation
Rather than having two separate ways to create a QMP input visitor, where the safer approach has the more verbose name, it is better to consolidate things into a single function where the caller must explicitly choose whether to be strict or to ignore excess input. This patch is the strictly mechanical conversion; the next patch will then audit which uses can be made stricter. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1461879932-9020-6-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
b471d012e5
commit
fc471c18d5
@ -115,7 +115,7 @@ def gen_marshal(name, arg_type, ret_type):
|
||||
|
||||
if arg_type and arg_type.members:
|
||||
ret += mcgen('''
|
||||
QmpInputVisitor *qiv = qmp_input_visitor_new_strict(QOBJECT(args));
|
||||
QmpInputVisitor *qiv = qmp_input_visitor_new(QOBJECT(args), true);
|
||||
QapiDeallocVisitor *qdv;
|
||||
Visitor *v;
|
||||
%(c_name)s arg = {0};
|
||||
|
Reference in New Issue
Block a user