summaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-09-20 13:44:28 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-09-27 09:48:24 -0300
commit05a3543dbddd03d6be723be4074e2e661b00b851 (patch)
tree63997ea7b47755d93be16b4651630c9cdcf8becb /hmp.c
parent753637695bcf6b80ea96614de5d31161603ad50f (diff)
downloadqemu-05a3543dbddd03d6be723be4074e2e661b00b851.tar.gz
qemu-05a3543dbddd03d6be723be4074e2e661b00b851.tar.bz2
qemu-05a3543dbddd03d6be723be4074e2e661b00b851.zip
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 'hmp.c')
0 files changed, 0 insertions, 0 deletions