From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz3ns-0004P3-Vs for qemu-devel@nongnu.org; Tue, 16 Jul 2013 07:52:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz3ns-0000rh-0l for qemu-devel@nongnu.org; Tue, 16 Jul 2013 07:52:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz3nr-0000ra-Nw for qemu-devel@nongnu.org; Tue, 16 Jul 2013 07:52:23 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6GBqMpr015509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Jul 2013 07:52:22 -0400 From: Amos Kong Date: Tue, 16 Jul 2013 19:52:14 +0800 Message-Id: <1373975534-14631-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH] qmp: update send-key document List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qzhang@redhat.com, lcapitulino@redhat.com commit 9f328977 changes qmp_send_key() to accept key codes in hex, but the document wasn't updated. The items of keys list is union now, not enum. Signed-off-by: Amos Kong --- qmp-commands.hx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index e3cbe93..30f9fc9 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -346,7 +346,8 @@ Send keys to VM. Arguments: keys array: - - "key": key sequence (a json-array of key enum values) + - "key": key sequence (a json-array of key union values, + union can be number or qcode enum) - hold-time: time to delay key up events, milliseconds. Defaults to 100 (json-int, optional) @@ -354,7 +355,9 @@ keys array: Example: -> { "execute": "send-key", - "arguments": { 'keys': [ 'ctrl', 'alt', 'delete' ] } } + "arguments": { "keys": [ { "type": "qcode", "data": "ctrl" }, + { "type": "qcode", "data": "alt" }, + { "type": "qcode", "data": "delete" } ] } } <- { "return": {} } EQMP -- 1.8.3.1