qapi: convert sendkey
Convert 'sendkey' to use QAPI. QAPI passes key's index of mapping table to qmp_send_key(), not keycode. So we use help functions to convert key/code to index of key_defs, and 'index' will be converted to 'keycode' inside qmp_send_key(). For qmp, QAPI would check invalid key and raise error. For hmp, invalid key is checked in hmp_send_key(). 'send-key' of QMP doesn't support key in hexadecimal format. Signed-off-by:Amos Kong <akong@redhat.com> Signed-off-by:
Luiz Capitulino <lcapitulino@redhat.com>
Showing
- console.h 0 additions, 1 deletionconsole.h
- hmp-commands.hx 1 addition, 1 deletionhmp-commands.hx
- hmp.c 55 additions, 0 deletionshmp.c
- hmp.h 1 addition, 0 deletionshmp.h
- input.c 66 additions, 1 deletioninput.c
- monitor.c 0 additions, 87 deletionsmonitor.c
- qapi-schema.json 20 additions, 0 deletionsqapi-schema.json
- qmp-commands.hx 28 additions, 0 deletionsqmp-commands.hx
Loading
Please register or sign in to comment