This website requires JavaScript.
Explore
Help
Sign In
dfaggioli
/
qemu
Watch
1
Star
0
Fork
0
You've already forked qemu
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
d3afacc7269fee45d54d1501a46b51f12ea7bb15
qemu
/
tests
/
qapi-schema
/
flat-union-reverse-define.exit
2 lines
2 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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>
2014-03-06 17:08:56 -08:00
0
Reference in New Issue
Copy Permalink