unicorn/qemu/scripts
Eric Blake c65f056fbe
qapi: Plumb in 'boxed' to qapi generator lower levels
The next patch will add support for passing a qapi union type
as the 'data' of a command. But to do that, the user function
for implementing the command, as called by the generated
marshal command, must take the corresponding C struct as a
single boxed pointer, rather than a breakdown into one
parameter per member. Even without a union, being able to use
a C struct rather than a list of parameters can make it much
easier to handle coding with QAPI.

This patch adds the internal plumbing of a 'boxed' flag
associated with each command and event. In several cases,
this means adding indentation, with one new dead branch and
the remaining branch being the original code more deeply
nested; this was done so that the new implementation in the
next patch is easier to review without also being mixed with
indentation changes.

For this patch, no behavior or generated output changes, other
than the testsuite outputting the value of the new flag
(always False for now).

Backports commit 48825ca419fd9c8140d4fecb24e982d68ebca74f from qemu
2018-02-25 20:17:01 -05:00
..
create_config
make_device_config.sh
ordereddict.py
qapi-event.py qapi: Plumb in 'boxed' to qapi generator lower levels 2018-02-25 20:17:01 -05:00
qapi-types.py qapi: Add type.is_empty() helper 2018-02-25 20:07:43 -05:00
qapi-visit.py qapi: Drop useless gen_err_check() 2018-02-25 20:10:45 -05:00
qapi.py qapi: Plumb in 'boxed' to qapi generator lower levels 2018-02-25 20:17:01 -05:00