diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-20 13:44:28 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-09-27 09:48:24 -0300 |
commit | 05a3543dbddd03d6be723be4074e2e661b00b851 (patch) | |
tree | 63997ea7b47755d93be16b4651630c9cdcf8becb /qdict.h | |
parent | 753637695bcf6b80ea96614de5d31161603ad50f (diff) | |
download | qemu-05a3543dbddd03d6be723be4074e2e661b00b851.zip qemu-05a3543dbddd03d6be723be4074e2e661b00b851.tar.gz qemu-05a3543dbddd03d6be723be4074e2e661b00b851.tar.bz2 |
input: qmp_send_key(): simplify
The current code duplicates the QKeyCodeList keys in order to store
the key values for release_keys() late run. This is a bit complicated
though, as we have to care about correct ordering and then release_keys()
will have to index key_defs[] over again.
Switch to an array of integers, which is dynamically allocated and stores
the already converted key value.
This simplifies the current code and the next commit.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qdict.h')
0 files changed, 0 insertions, 0 deletions