From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmlU3-0004jc-1b for qemu-devel@nongnu.org; Thu, 05 Jul 2012 08:48:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmlTt-0004GT-4S for qemu-devel@nongnu.org; Thu, 05 Jul 2012 08:48:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmlTs-0004GC-Sm for qemu-devel@nongnu.org; Thu, 05 Jul 2012 08:48:25 -0400 From: Amos Kong Date: Thu, 5 Jul 2012 20:48:39 +0800 Message-Id: <1341492525-29809-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/6] convert sendkey to qapi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com, eblake@redhat.com, berrange@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org Cc: Amos Kong This series converted 'sendkey' command to qapi. The raw value in hexadecimal format is not supported by 'send-key' of qmp. Amos Kong (6): fix doc of using raw values with sendkey monitor: rename keyname '<' to 'less' hmp: rename arguments qapi: generate list struct and visit_list for enum qapi: convert sendkey ps2: output warning when event queue full console.h | 152 +++++++++++++++++++++++++++++++ hmp-commands.hx | 10 +- hmp.c | 64 +++++++++++++ hmp.h | 1 + hw/ps2.c | 4 +- monitor.c | 236 ++++++------------------------------------------- qapi-schema.json | 46 ++++++++++ qmp-commands.hx | 28 ++++++ scripts/qapi-types.py | 16 +++- scripts/qapi-visit.py | 14 +++- 10 files changed, 354 insertions(+), 217 deletions(-) --- Changes from v1: - using a JSON array for the key names - rename new error to 'QERR_OVERFLOW' - fix command descriptions - qapi: generate list struct for enum - add '<' fixing Changes from v2: - fix support of raw value in hexadecimal format - fix bug in processing of '<-x' - don't generate useless cleanup functions for enum - introduced two functions for enum in qapi scripts - fix command description - drop keys number limitation in sendkey - drop patch: qerror: add QERR_OVERFLOW Changes from v3: - move key_defs[] to console.h - link mapping tables by enum values - rename 'sendkey' to 'send-key' for qmp