diff options
author | Aurelien Jarno | 2012-09-10 15:04:36 +0200 |
---|---|---|
committer | Aurelien Jarno | 2012-09-10 15:04:36 +0200 |
commit | e22b1e9907833d72f4a959b34c5eefc3533c7711 (patch) | |
tree | 662cf685e04726bb68d8eeee94a06d694f35f95a /qmp-commands.hx | |
parent | hw/mcf5206: Fix buffer overflow for MBAR read / write (diff) | |
parent | tcx: tcx_screen_dump(): add error handling (diff) | |
download | qemu-e22b1e9907833d72f4a959b34c5eefc3533c7711.tar.gz qemu-e22b1e9907833d72f4a959b34c5eefc3533c7711.tar.xz qemu-e22b1e9907833d72f4a959b34c5eefc3533c7711.zip |
Merge branch 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable
* 'queue/qmp' of git://repo.or.cz/qemu/qmp-unstable:
tcx: tcx_screen_dump(): add error handling
tcx: tcx24_screen_dump(): add error handling
g364fb: g364fb_screen_dump(): add error handling
omap_lcdc: omap_ppm_save(): add error handling
omap_lcdc: rename ppm_save() to omap_ppm_save()
vga: ppm_save(): add error handling
qapi: convert screendump
console: vga_hw_screen_dump_ptr: take Error argument
error: add error_setg()
json-parser: Fix potential NULL pointer segfault
qapi: Fix potential NULL pointer segfault
qapi: convert sendkey
monitor: move key_defs[] table and introduce two help functions
qapi: add the QKeyCode enum
qapi: generate list struct and visit_list for enum
hmp: rename arguments
monitor: rename keyname '<' to 'less'
fix doc of using raw values with sendkey
Add support for pretty-printing response in qmp-shell
Diffstat (limited to 'qmp-commands.hx')
-rw-r--r-- | qmp-commands.hx | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/qmp-commands.hx b/qmp-commands.hx index 3745a21199..6e21ddba61 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -146,10 +146,7 @@ EQMP { .name = "screendump", .args_type = "filename:F", - .params = "filename", - .help = "save screen into PPM image 'filename'", - .user_print = monitor_user_noop, - .mhandler.cmd_new = do_screen_dump, + .mhandler.cmd_new = qmp_marshal_input_screendump, }, SQMP @@ -335,6 +332,34 @@ Example: EQMP { + .name = "send-key", + .args_type = "keys:O,hold-time:i?", + .mhandler.cmd_new = qmp_marshal_input_send_key, + }, + +SQMP +send-key +---------- + +Send keys to VM. + +Arguments: + +keys array: + - "key": key sequence (a json-array of key enum values) + +- hold-time: time to delay key up events, milliseconds. Defaults to 100 + (json-int, optional) + +Example: + +-> { "execute": "send-key", + "arguments": { 'keys': [ 'ctrl', 'alt', 'delete' ] } } +<- { "return": {} } + +EQMP + + { .name = "cpu", .args_type = "index:i", .mhandler.cmd_new = qmp_marshal_input_cpu, |