Markus Armbruster efd2eaa6c2 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>
2015-09-21 09:56:47 +02:00
..
2015-07-07 14:54:55 +02:00
2015-09-11 10:45:43 +03:00
2015-04-30 16:05:48 +03:00
2014-06-10 07:44:01 +02:00
2015-02-16 17:30:19 +01:00
2013-04-03 11:39:43 +02:00
2013-03-22 13:25:07 +01:00
2015-09-11 10:45:43 +03:00