Received: from eggs.gnu.org ([2001:4830:134:3::10]:58923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnAR-0005dz-NG for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSnAN-0007oP-0n for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:42:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSnAM-0007lj-Ja for qemu-devel@nongnu.org; Wed, 26 Mar 2014 08:42:46 -0400 From: Markus Armbruster References: <1388704234-22498-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1388704234-22498-4-git-send-email-xiawenc@linux.vnet.ibm.com> <5318C354.6060706@redhat.com> <5329030F.5010401@gmail.com> <532B6BDE.9040705@redhat.com> <532F829E.8040903@gmail.com> Date: Wed, 26 Mar 2014 13:42:38 +0100 In-Reply-To: <532F829E.8040903@gmail.com> (Wenchao Xia's message of "Mon, 24 Mar 2014 08:55:58 +0800") Message-ID: <87zjkd5dxd.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH V2 3/5] qapi script: add event support by qapi-event.py List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: =?utf-8?Q?Beno=C3=AEt?= Canet , mreitz@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com Wenchao Xia writes: > =E4=BA=8E 2014/3/21 6:29, Eric Blake =E5=86=99=E9=81=93: >> On 03/18/2014 08:38 PM, Wenchao Xia wrote: >>> =E4=BA=8E 2014/3/7 2:49, Eric Blake =E5=86=99=E9=81=93: >>>> On 01/02/2014 04:10 PM, Wenchao Xia wrote: >>>>> qapi-event.py will parse the schema and generate qapi-event.c, then >>>>> the API in qapi-event.c can be used to handle event in qemu code. >>>>> All API have prefix "qapi_event", all types have prefix "QAPIEvent". >>>>> Examples can be found in following patches. >>>>> >>>>> +for o, a in opts: >>>>> + if o in ("-p", "--prefix"): >>>>> + prefix =3D a >>>>> + elif o in ("-o", "--output-dir"): >>>>> + output_dir =3D a + "/" >>>>> + elif o in ("-c", "--source"): >>>>> + do_c =3D True >>>>> + elif o in ("-h", "--header"): >>>>> + do_h =3D True >>>>> + elif o in ("-b", "--builtins"): >>>>> + do_builtins =3D True >>>> You may need to rebase this on top of other patches that refactor the >>>> qapi generators to track the input file, for improved error messages. >>> It seems qapi-visit.py and qapi-types.py remains the same as above in >>> upstream, which kind of change are your referring to? >> Llu=C3=ADs' patch to use an explicit input file via a new -i option: >> https://lists.gnu.org/archive/html/qemu-devel/2014-02/msg05220.html >> > I see, will adjust it. Part of "[PATCH v4 0/3] qapi: Allow modularization of QAPI schema files". There's also Beno=C3=AEt's "[PATCH 0/2] Create and include directi= ve for QAPI JSON files"[*]. Beno=C3=AEt, care to explain how the two are related? Wenchao, please note "you *may* need to rebase". First patch in wins :) [*] https://lists.nongnu.org/archive/html/qemu-devel/2014-03/msg04412.html