On 06/05/2014 06:21 AM, 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". > > The script mainly includes two parts: generate API for each event > define, generate an enum type for all defined events. > > 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. >
> +++ b/scripts/qapi-event.py > @@ -0,0 +1,369 @@ > +# > +# QAPI event generator > +# > +# Copyright (c) 2014 Wenchao Xia > +# > +# Authors: > +# Wenchao Xia <wenchaoq...@gmail.com> > +# > +# This work is licensed under the terms of the GNU GPL, version 2. > +# See the COPYING file in the top-level directory. Any reason this can't be GPLv2+ instead of GPLv2-only? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature