Statistics
| Branch: | Revision:

root / scripts / qapi-commands.py @ 8d3bc517

History | View | Annotate | Download (11.5 kB)

# Date Author Comment
8d3bc517 12/27/2011 05:28 pm Avi Kivity

Fix qapi code generation wrt parallel build

Make's multiple output syntax

x.c x.h: x.template
gen < x.template

actually invokes the command once for x.c and once for x.h (with differing $@
in each invocation). During a parallel build, the two commands may be invoked...

5dbee474 12/15/2011 05:20 pm Anthony Liguori

qapi: allow a 'gen' key to suppress code generation

Signed-off-by: Anthony Liguori <>

694a099a 10/27/2011 04:48 pm Luiz Capitulino

qapi-commands.py: Don't call the output marshal on error

Today we generate something like this:

int qmp_marshal_input_query_foo(...)
...
retval = qmp_query_foo(errp);
qmp_marshal_output_query_foo(retval, ret, errp);
......
776574d6 10/04/2011 05:00 pm Anthony Liguori

qapi: add code generation support for middle mode

To get the ball rolling merging QAPI, this patch introduces a "middle mode" to
the code generator. In middle mode, the code generator generates marshalling
functions that are compatible with the current QMP server. We absolutely need...

15e43e64 10/04/2011 05:00 pm Anthony Liguori

qapi: fixup command generation for functions that return list types

Signed-off-by: Anthony Liguori <>
Signed-off-by: Luiz Capitulino <>

7534ba01 08/12/2011 04:31 pm Michael Roth

qapi: fix build issue due to missing newline in generated header

Fixes a build issue on RHEL5, and potentially other distros, where gcc
will generate an error due to us not writing a trailing "\n" when
generating *qmp-commands.h

Signed-off-by: Michael Roth <>...

c17d9908 07/21/2011 10:48 pm Michael Roth

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...