Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-18 Thread Paolo Bonzini
Il 18/06/2014 05:33, Eric Blake ha scritto: +# 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? I suppose because it copies parts of other qapi-* scripts. :( Paolo

Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-18 Thread Wenchao Xia
于 2014/6/18 14:06, Paolo Bonzini 写道: Il 18/06/2014 05:33, Eric Blake ha scritto: +# 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? I suppose because it copies parts

Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-17 Thread Eric Blake
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

Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-17 Thread Eric Blake
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

Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-13 Thread Eric Blake
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. s/event in/events in/ All API have prefix qapi_event. The script mainly includes two parts: generate API for each

Re: [Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-13 Thread Eric Blake
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. As promised, a revisit of the generator code now that I've looked at more of it in

[Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-05 Thread Wenchao Xia
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