diff options
author | Markus Armbruster | 2015-04-29 23:35:04 +0200 |
---|---|---|
committer | Luiz Capitulino | 2015-05-11 14:59:07 +0200 |
commit | a7c31816288a8f20fc387d69d441413e7a8c9ff1 (patch) | |
tree | c66deef69b36736bc7b77fa372c1efd54ba12881 /scripts/qapi-types.py | |
parent | QJSON: Use OBJECT_CHECK (diff) | |
download | qemu-a7c31816288a8f20fc387d69d441413e7a8c9ff1.tar.gz qemu-a7c31816288a8f20fc387d69d441413e7a8c9ff1.tar.xz qemu-a7c31816288a8f20fc387d69d441413e7a8c9ff1.zip |
qobject: Clean up around qtype_code
QTYPE_NONE is a sentinel value. No QObject has this type code.
Document it properly.
Fix dump_qobject() to abort() on QTYPE_NONE, just like for any other
invalid type code.
Fix to_json() to abort() on all invalid type codes, not just
QTYPE_MAX.
Clean up Property member qtype's type: it's a qtype_code.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions