qapi: add qapi-commands.py code generator
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 19 Jul 2011 19:50:42 +0000 (14:50 -0500)
committerLuiz Capitulino <lcapitulino@gmail.com>
Thu, 21 Jul 2011 19:48:14 +0000 (16:48 -0300)
commit30d03c4290f7df069c82a8860fe78e4a6b13b778
tree55a337fdb16602b7d82f4a476ccdfa45bdf787a4
parent075f694c5306413f25a0a8fd187918a3428212b3
qapi: add qapi-commands.py code generator

This is the code generator for qapi command marshaling/dispatch.
Currently only generators for synchronous qapi/qmp functions are
supported. This script generates the following files:

  $(prefix)qmp-marshal.c: command marshal/dispatch functions for each
                          QMP command defined in the schema. Functions
                          generated by qapi-visit.py are used to
                          convert qobjects recieved from the wire into
                          function parameters, and uses the same
                          visiter functions to convert native C return
                          values to qobjects from transmission back
                          over the wire.

  $(prefix)qmp-commands.h: Function prototypes for the QMP commands
                           specified in the schema.

$(prefix) is used in the same manner as with qapi-types.py

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>
scripts/qapi-commands.py [new file with mode: 0644]