qapi-commands: Inline gen_marshal_output_call()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
8102307f51
commit
e02bca281c
@ -57,19 +57,15 @@ def gen_sync_call(name, args, ret_type):
|
|||||||
name=c_name(name), args=arglist, retval=retval).rstrip()
|
name=c_name(name), args=arglist, retval=retval).rstrip()
|
||||||
if ret_type:
|
if ret_type:
|
||||||
ret += "\n" + gen_err_check('local_err')
|
ret += "\n" + gen_err_check('local_err')
|
||||||
ret += "\n" + mcgen('''
|
ret += mcgen('''
|
||||||
%(marshal_output_call)s
|
|
||||||
|
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()
|
pop_indent()
|
||||||
return ret.rstrip()
|
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):
|
def gen_visitor_input_containers_decl(args):
|
||||||
ret = ""
|
ret = ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user