]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: add an implemention of qapi event emit method
authorWenchao Xia <wenchaoqemu@gmail.com>
Wed, 18 Jun 2014 06:43:31 +0000 (08:43 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 23 Jun 2014 15:01:25 +0000 (11:01 -0400)
commit43a14cfc0f122f3a18fdfe9e16538a6798b95b59
tree4579e7db0fa96d9723a70e250a9ba59cfe3e818e
parenta589569f2f40a0454b52398035cfe7fbe44ab1e9
monitor: add an implemention of qapi event emit method

The monitor is now hooked on the new event mechanism, so that later
patches can convert event callers one by one. Most code are copied from
old monitor_protocol_* functions with some modification.

Note that two build time warnings will be raised after this patch. One is
caused by no caller of monitor_qapi_event_throttle(), the other one is
caused by QAPI_EVENT_MAX = 0. They will be fixed automatically after
full event conversion later.

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>
monitor.c