diff options
| author | Wenchao Xia | 2014-03-07 02:08:56 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-03-11 14:07:42 +0100 |
| commit | bceae7697ff1711675c26f715b945737bc6849ae (patch) | |
| tree | b528a35656db4d66e9c5be5be54edc7cbeb79344 /include/exec/user | |
| parent | qapi script: use same function to generate enum string (diff) | |
| download | qemu-bceae7697ff1711675c26f715b945737bc6849ae.tar.gz qemu-bceae7697ff1711675c26f715b945737bc6849ae.tar.xz qemu-bceae7697ff1711675c26f715b945737bc6849ae.zip | |
qapi script: support enum type as discriminator in union
By default, any union will automatically generate a enum type as
"[UnionName]Kind" in C code, and it is duplicated when the discriminator
is specified as a pre-defined enum type in schema. After this patch,
the pre-defined enum type will be really used as the switch case
condition in generated C code, if discriminator is an enum field.
Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
