From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjg6C-0000DZ-Of for qemu-devel@nongnu.org; Thu, 21 Nov 2013 21:04:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vjg65-0008KX-6P for qemu-devel@nongnu.org; Thu, 21 Nov 2013 21:04:00 -0500 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:57267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vjg64-0008CV-56 for qemu-devel@nongnu.org; Thu, 21 Nov 2013 21:03:53 -0500 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Nov 2013 12:03:48 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 77C882BB0054 for ; Fri, 22 Nov 2013 13:03:46 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rAM1jlLS64552998 for ; Fri, 22 Nov 2013 12:45:48 +1100 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rAM23iLW011068 for ; Fri, 22 Nov 2013 13:03:45 +1100 Message-ID: <528EBB80.2010601@linux.vnet.ibm.com> Date: Fri, 22 Nov 2013 10:03:44 +0800 From: Wenchao Xia MIME-Version: 1.0 References: <1384307094-5836-1-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1384307094-5836-1-git-send-email-xiawenc@linux.vnet.ibm.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH RFC 0/3] add direct support of event in qapi schema List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, mdroth@linux.vnet.ibm.com, armbru@redhat.com, pbonzini@redhat.com, lcapitulino@redhat.com, Wenchao Xia ÓÚ 2013/11/13 9:44, Wenchao Xia дµÀ: > This series add support for tag/keyword 'event' in qapi-schema. > The implemention doesn't generate a struture and visit function > in the background for every event, so it doesn't support nested > structure in the define to avoid trouble. > > It is on top of series: > http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg01574.html > > Wenchao Xia (3): > 1 os-posix: include sys/time.h > 2 qapi script: add support of event > 3 tests: add test cases for qapi event support > > Makefile | 9 +- > Makefile.objs | 2 +- > include/sysemu/os-posix.h | 2 + > qapi/Makefile.objs | 1 + > scripts/qapi-event.py | 355 +++++++++++++++++++++++++++++++ > tests/Makefile | 14 +- > tests/qapi-schema/qapi-schema-test.json | 12 + > tests/qapi-schema/qapi-schema-test.out | 10 +- > tests/test-qmp-event.c | 250 ++++++++++++++++++++++ > 9 files changed, 646 insertions(+), 9 deletions(-) > create mode 100644 scripts/qapi-event.py > create mode 100644 tests/test-qmp-event.c > Luiz, do you think this series is in the right direction?