diff options
author | Eric Blake <eblake@redhat.com> | 2015-05-04 09:05:24 -0600 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-05-05 18:39:01 +0200 |
commit | 2cbf09925ad45401673a79ab77f67de2f04a826c (patch) | |
tree | 50fb23198c62297cdcc892e6d57301109621cfd4 /target-lm32/lm32-semi.c | |
parent | 10d4d997f86cf2a4ce89145df5658952d5722e56 (diff) | |
download | qemu-2cbf09925ad45401673a79ab77f67de2f04a826c.zip qemu-2cbf09925ad45401673a79ab77f67de2f04a826c.tar.gz qemu-2cbf09925ad45401673a79ab77f67de2f04a826c.tar.bz2 |
qapi: More rigorous checking for type safety bypass
Now that we have a way to validate every type, we can also be
stricter about enforcing that callers that want to bypass
type safety in generated code. Prior to this patch, it didn't
matter what value was associated with the key 'gen', but it
looked odd that 'gen':'yes' could result in bypassing the
generated code. These changes also enforce the changes made
earlier in the series for documentation and consolidation of
using '**' as the wildcard type, as well as 'gen':false as the
canonical spelling for requesting type bypass.
Note that 'gen':false is a one-way switch away from the default;
we do not support 'gen':true (similar for 'success-response').
In practice, this doesn't matter.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'target-lm32/lm32-semi.c')
0 files changed, 0 insertions, 0 deletions