提交 e02bca28 编写于 作者: M Markus Armbruster

qapi-commands: Inline gen_marshal_output_call()

Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
上级 8102307f
......@@ -57,19 +57,15 @@ def gen_sync_call(name, args, ret_type):
name=c_name(name), args=arglist, retval=retval).rstrip()
if ret_type:
ret += "\n" + gen_err_check('local_err')
ret += "\n" + mcgen('''
%(marshal_output_call)s
ret += mcgen('''
qmp_marshal_output_%(c_name)s(retval, ret, &local_err);
''',
marshal_output_call=gen_marshal_output_call(name, ret_type)).rstrip()
c_name=c_name(name))
pop_indent()
return ret.rstrip()
def gen_marshal_output_call(name, ret_type):
if not ret_type:
return ""
return "qmp_marshal_output_%s(retval, ret, &local_err);" % c_name(name)
def gen_visitor_input_containers_decl(args):
ret = ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册