Re: [Qemu-devel] [PATCH 2.1 04/36] qapi script: add event support

2014-06-19 Thread Eric Blake
On 06/18/2014 12:43 AM, Paolo Bonzini wrote: > From: 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 events in qemu code. > All API have prefix "qapi_event". > > +if params: > +for argname, argentry,

Re: [Qemu-devel] [PATCH 2.1 04/36] qapi script: add event support

2014-06-19 Thread Eric Blake
On 06/18/2014 12:43 AM, Paolo Bonzini wrote: > From: 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 events in qemu code. > All API have prefix "qapi_event". > > The script mainly includes two parts: generate API

[Qemu-devel] [PATCH 2.1 04/36] qapi script: add event support

2014-06-17 Thread Paolo Bonzini
From: 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 events 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 defin