Add ability to generate enums
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 31 Jul 2017 10:47:39 +0000 (11:47 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 7 Aug 2017 12:42:46 +0000 (13:42 +0100)
commit86bb9445abf888a4036e497803696316d7694db3
tree8854557e553ee9ff09735d0598889d1e3082a5e5
parent70a851aee6de380c5be5234c60b9d0621bfe5863
Add ability to generate enums

While we know the integer values corresponding to most key sets, the
QEMU QKeyCode values are explicitly not-public, not guaranteed stable.
We must therefore be able to emit symbolic enum constants, instead of
raw int values.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/keymap-gen