]> git.proxmox.com Git - mirror_qemu.git/commit
qapi-commands: De-duplicate output marshaling functions
authorMarkus Armbruster <armbru@redhat.com>
Wed, 16 Sep 2015 11:06:21 +0000 (13:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 21 Sep 2015 07:56:48 +0000 (09:56 +0200)
commit56d92b003a223585980df5403ee9e3a55de90adf
treeb9034dd5633dcff2ca8859ab4d6bb9991cfc26f2
parent03b4367a556179e3e59affa535493427bd009e9d
qapi-commands: De-duplicate output marshaling functions

gen_marshal_output() uses its parameter name only for name of the
generated function.  Name it after the type being marshaled instead of
its caller, and drop duplicates.

Saves 7 copies of qmp_marshal_output_int() in qemu-ga, and one copy of
qmp_marshal_output_str() in qemu-system-*.

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-19-git-send-email-armbru@redhat.com>
docs/qapi-code-gen.txt
scripts/qapi-commands.py