qapi-commands: Rearrange code
commitf15380190a6e635e6c579ca24d672aa4aa068632
authorMarkus Armbruster <armbru@redhat.com>
Wed, 16 Sep 2015 11:06:18 +0000 (16 13:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 21 Sep 2015 07:56:48 +0000 (21 09:56 +0200)
tree9a9a1df38f45cc7c40eef6ae5c0cc6432dbaa2c5
parent60f8546acd113e636bf2ba8af991ebe0f6e8ad66
qapi-commands: Rearrange code

Rename gen_marshal_input() to gen_marshal(), because the generated
function marshals both arguments and results.

Rename gen_visitor_input_containers_decl() to gen_marshal_vars(), and
move the other variable declarations there, too.

Rename gen_visitor_input_block() to gen_marshal_input_visit(), and
rearrange its code slightly.

Rename gen_marshal_input_decl() to gen_marshal_proto(), because the
result isn't a full declaration, unlike gen_command_decl()'s.

New gen_marshal_decl() actually returns a full declaration.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1442401589-24189-16-git-send-email-armbru@redhat.com>
scripts/qapi-commands.py