From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxb7N-0005Ed-TY for qemu-devel@nongnu.org; Thu, 19 Jun 2014 08:07:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxb7G-00062s-Mm for qemu-devel@nongnu.org; Thu, 19 Jun 2014 08:07:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxb7G-00062A-Dh for qemu-devel@nongnu.org; Thu, 19 Jun 2014 08:06:54 -0400 Message-ID: <53A2D25A.3020600@redhat.com> Date: Thu, 19 Jun 2014 06:06:50 -0600 From: Eric Blake MIME-Version: 1.0 References: <1403073840-32603-1-git-send-email-pbonzini@redhat.com> <1403073840-32603-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1403073840-32603-5-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HhvA38jIgtUGEonifnnGKMdEUO83QW5db" Subject: Re: [Qemu-devel] [PATCH 2.1 04/36] qapi script: add event support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: wenchaoqemu@gmail.com, lcapitulino@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HhvA38jIgtUGEonifnnGKMdEUO83QW5db Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/18/2014 12:43 AM, Paolo Bonzini wrote: > From: Wenchao Xia >=20 > qapi-event.py will parse the schema and generate qapi-event.c, then > the API in qapi-event.c can be used to handle events in qemu code. > All API have prefix "qapi_event". >=20 > The script mainly includes two parts: generate API for each event > define, generate an enum type for all defined events. >=20 > Since in some cases the real emit behavior may change, for example, > qemu-img would not send a event, a callback layer is used to > control the behavior. As a result, the stubs at compile time > can be saved, the binding of block layer code and monitor code > will become looser. >=20 > Signed-off-by: Wenchao Xia > Signed-off-by: Paolo Bonzini > --- > +++ b/scripts/qapi-event.py > @@ -0,0 +1,369 @@ > +# > +# QAPI event generator > +# > +# Copyright (c) 2014 Wenchao Xia > +# > +# Authors: > +# Wenchao Xia > +# > +# This work is licensed under the terms of the GNU GPL, version 2. > +# See the COPYING file in the top-level directory. As mentioned in another thread, Wenchao was okay relaxing this to GPLv2+ - but do that as a followup rather than holding up this series. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --HhvA38jIgtUGEonifnnGKMdEUO83QW5db 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/ iQEcBAEBCAAGBQJTotJaAAoJEKeha0olJ0NqgsYH/jjdR1Iekxp5DqF3iC92f7Qg R4DUYj5PQTM6JljMko3Jjh156fd71FQFClUHXTbBvwyPbAO8zb3k3d1VhoHyiiGf l54ZhdTpoxEqOA8x5U6P+aCX7gzZajqHilaib0bJZj2Nae174uLF1io1viYMFl7w ZZZAuSfe9zXXDAMHv/zrRYUmdiuADnWX5qbVrtBH7srZBh1Yi0MYzZqxi94wdHoQ Y9yK0c0zPXg9aJJMp7TUaxX+FXKv6EyW2iv5AX9cfy+cqHoGMKemPL1CBRhj/lcJ /zyOuYG6akDtjrLv4t9VCb7rLwfCMewsTtDJG5j6wEZ0eJWCUCdBwMhgD6csnbg= =0i/z -----END PGP SIGNATURE----- --HhvA38jIgtUGEonifnnGKMdEUO83QW5db--