]> git.proxmox.com Git - mirror_qemu.git/commit - Makefile
qapi script: add event support
authorWenchao Xia <wenchaoqemu@gmail.com>
Wed, 18 Jun 2014 06:43:28 +0000 (08:43 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 23 Jun 2014 15:01:25 +0000 (11:01 -0400)
commit21cd70dfc1a6dc90511bae55a460a3a55461339a
treeecde7d3f4f60d0d0e70982d215ccc67043ebb11f
parentf882126024dae3df45adb8bdd0f8ca9d63787fa0
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>
Makefile
Makefile.objs
docs/qapi-code-gen.txt
scripts/qapi-event.py [new file with mode: 0644]
scripts/qapi.py
tests/Makefile
tests/qapi-schema/event-nest-struct.err [new file with mode: 0644]
tests/qapi-schema/event-nest-struct.exit [new file with mode: 0644]
tests/qapi-schema/event-nest-struct.json [new file with mode: 0644]
tests/qapi-schema/event-nest-struct.out [new file with mode: 0644]