]> git.proxmox.com Git - qemu.git/commit
input: qmp_send_key(): simplify
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 20 Sep 2012 16:44:28 +0000 (13:44 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 27 Sep 2012 12:48:24 +0000 (09:48 -0300)
commit05a3543dbddd03d6be723be4074e2e661b00b851
tree63997ea7b47755d93be16b4651630c9cdcf8becb
parent753637695bcf6b80ea96614de5d31161603ad50f
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>
input.c