Re: [Qemu-devel] [PATCH V5 03/28] qapi script: add event support

2014-05-02 Thread Markus Armbruster
Eric Blake ebl...@redhat.com writes: On 04/30/2014 10:26 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. The script mainly includes two parts:

Re: [Qemu-devel] [PATCH V5 03/28] qapi script: add event support

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 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. The script mainly includes two parts: generate API for each event define, generate

[Qemu-devel] [PATCH V5 03/28] qapi script: add event support

2014-04-30 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