Wenchao Xia 21cd70dfc1 qapi script: add event support
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 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.

Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-06-23 11:01:25 -04:00
..
2014-06-09 15:43:40 +02:00
2013-09-09 14:17:56 -05:00
2014-02-20 13:14:18 +01:00
2012-03-30 08:14:11 -05:00
2014-06-23 11:01:25 -04:00
2014-05-08 14:19:58 -04:00
2014-06-23 11:01:25 -04:00
2012-03-24 12:57:02 +00:00
2012-03-30 08:14:11 -05:00
2012-04-16 15:41:20 +02:00
2014-02-15 16:10:25 +04:00
2012-03-24 14:10:25 +00:00
2014-06-09 15:43:40 +02:00