qemu-patch-raspberry4/scripts
Amos Kong b9c4b48d50 qapi: generate list struct and visit_list for enum
Currently, if we define an 'enum' and use it in one command's
data, list struct for enum could not be generated, but it's
used in qmp function.

For example: KeyCodesList could not be generated.
>>> qapi-schema.json:
{ 'enum': 'KeyCodes',
  'data': [ 'shift', 'alt' ... ] }
{ 'command': 'sendkey',
  'data': { 'keys': ['KeyCodes'], '*hold-time': 'int' } }

>>> qmp-command.h:
void qmp_sendkey(KeyCodesList * keys, bool has_hold_time, int64_t
hold_time, Error **errp);

This patch lets qapi generate list struct and visit_list for enum.

Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2012-09-05 15:48:56 -03:00
..
kvm s390: make kvm_stat work on s390 2012-06-18 15:32:45 +02:00
tracetool trace/simple: Fix compiler warning for 32 bit hosts 2012-08-14 13:19:54 +01:00
analyse-9p-simpletrace.py scripts/analyse-9p-simpletrace.py: Add symbolic names for 9p operations. 2011-12-21 12:37:23 +05:30
check-qerror.sh qerror: add check-qerror.sh to verify alphabetical order 2012-01-18 10:23:39 -02:00
checkpatch.pl checkpatch: Add QEMU specific rule 2012-06-22 09:41:31 +01:00
create_config create_config: simplify prefix=* block, remove CONFIG_QEMU_PREFIX 2012-04-24 09:50:31 -05:00
feature_to_c.sh gdbstub-xml: avoid a warning from sparse 2011-01-23 11:43:25 +00:00
get_maintainer.pl get_maintainer: update to match qemu tree 2011-06-16 00:20:06 +03:00
gtester-cat test makefile overhaul 2012-03-30 08:14:11 -05:00
hxtool vl.c: In qemu -h output, only print options for the arch we are running as 2011-12-19 10:27:33 -06:00
make-release build: add make dist target (v2) 2012-07-17 15:43:16 -05:00
make_device_config.sh Add scripts directory 2011-01-20 20:54:21 +00:00
ordereddict.py qapi: add ordereddict.py helper library 2011-07-21 16:48:14 -03:00
qapi-commands.py scripts: qapi-commands.py: qmp-commands.h: include qdict.h 2012-08-13 16:10:18 -03:00
qapi-types.py qapi: generate list struct and visit_list for enum 2012-09-05 15:48:56 -03:00
qapi-visit.py qapi: generate list struct and visit_list for enum 2012-09-05 15:48:56 -03:00
qapi.py qapi: avoid reserved keywords 2012-08-09 18:34:57 +00:00
qemu-binfmt-conf.sh scripts/qemu-binfmt-conf.sh: Fix shell syntax 2012-05-08 11:15:18 -05:00
qemu-gdb.py scripts: add gdb support script 2012-03-24 12:57:02 +00:00
qtest qtest: add test framework 2012-03-30 08:14:11 -05:00
refresh-pxe-roms.sh PXE: Refresh all PXE ROMs from the ipxe submodule 2011-04-18 11:46:41 -06:00
signrom.py signrom: Rewrite as python script 2012-04-16 15:41:20 +02:00
simpletrace.py trace: Fix "Qemu" -> "QEMU" 2012-08-15 15:18:54 +01:00
texi2pod.pl Support utf8 chars in pod docs 2012-03-24 14:10:25 +00:00
tracetool.py tracetool: use Python 2.4-compatible exception handling syntax 2012-05-01 20:15:28 +01:00
update-linux-headers.sh update-linux-headers.sh: Pull in asm-generic/kvm_para.h 2012-08-14 19:23:17 -03:00