diff options
| author | Markus Armbruster | 2015-09-16 13:06:12 +0200 |
|---|---|---|
| committer | Markus Armbruster | 2015-09-21 09:56:47 +0200 |
| commit | efd2eaa6c2992c214a13f102b6ddd4dca4697fb3 (patch) | |
| tree | a95c9cfc94d98038b0c850c06958c79d86ab08b2 /scripts/simpletrace.py | |
| parent | qapi-commands: Convert to QAPISchemaVisitor (diff) | |
| download | qemu-efd2eaa6c2992c214a13f102b6ddd4dca4697fb3.tar.gz qemu-efd2eaa6c2992c214a13f102b6ddd4dca4697fb3.tar.xz qemu-efd2eaa6c2992c214a13f102b6ddd4dca4697fb3.zip | |
qapi: De-duplicate enum code generation
Duplicated in commit 21cd70d. Yes, we can't import qapi-types, but
that's no excuse. Move the helpers from qapi-types.py to qapi.py, and
replace the duplicates in qapi-event.py.
The generated event enumeration type's lookup table becomes
const-correct (see commit 2e4450f), and uses explicit indexes instead
of relying on order (see commit 912ae9c).
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1442401589-24189-10-git-send-email-armbru@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions
