qapi: Normalize marshalling's visitor initialization and cleanup
commitf9bee751be1292c9433a95d835474dc38a134a95
authorMarkus Armbruster <armbru@redhat.com>
Wed, 7 May 2014 07:53:44 +0000 (7 09:53 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 15 May 2014 18:00:45 +0000 (15 14:00 -0400)
tree1de86f06a790eafdbeebf9b845087e0d8e08e9c7
parent6e2bb3ec70e2a23ba74328031c9b82f34c3d4eb9
qapi: Normalize marshalling's visitor initialization and cleanup

Input and output marshalling functions do it differently.  Change them
to work the same: initialize the I/O visitor, use it, clean it up,
initialize the dealloc visitor, use it, clean it up.

This delays dealloc visitor initialization in output marshalling
functions, and input visitor cleanup in input marshalling functions.
No functional change, but the latter will be convenient when I change
the error handling.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
docs/qapi-code-gen.txt
scripts/qapi-commands.py