From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQlTK-0005Re-GZ for qemu-devel@nongnu.org; Thu, 20 Mar 2014 18:30:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQlTG-00084O-EE for qemu-devel@nongnu.org; Thu, 20 Mar 2014 18:29:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQlTG-00084G-4b for qemu-devel@nongnu.org; Thu, 20 Mar 2014 18:29:54 -0400 Message-ID: <532B6BDE.9040705@redhat.com> Date: Thu, 20 Mar 2014 16:29:50 -0600 From: Eric Blake MIME-Version: 1.0 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> In-Reply-To: <5329030F.5010401@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TG4BtkX7PrXe4H4WgeU7ObMuGnwm1rqGL" 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: armbru@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --TG4BtkX7PrXe4H4WgeU7ObMuGnwm1rqGL Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --TG4BtkX7PrXe4H4WgeU7ObMuGnwm1rqGL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTK2veAAoJEKeha0olJ0NqP/QH/1cPnaTR6ZNWzJMMxtJEdYGR +75gYMV41K3ykxvTxAzttfjfbNdHn9lnC3F4aY61fvOmIJlrsObHQJZVdK01Lyxb doCsKbbqfvnKpcAb27VamIpDjUBSJ4ANR+EtW1ocLK+fpbj4iY2B86xL6oFHN0jl z7rsT1s7+lePwUx+sBrdE/dSxW6Ed8TY/8EZKtreAMpHeZKOD+iWWxGP9gYHqTbo JTf5Q6koJJtvLZk/MLJtBQh+s4+iH9GMUuil84kAWmUmt4n0pQp9/3c5MLJ9Y0ji L9rd/Lex+5fLBNjypYymu35Krp1c7bRMbNhRKXxyyiQew6ll+82kqii+/lo/IP4= =lC4b -----END PGP SIGNATURE----- --TG4BtkX7PrXe4H4WgeU7ObMuGnwm1rqGL--