libvirt/src/remote
Eric Blake e7708a1c47 qemu: wire up RPC for qemu monitor events
These are the first async events in the qemu protocol, so this
patch looks rather big compared to most RPC additions.  However,
a large majority of this patch is just mechanical copy-and-paste
from recently-added network events.  It didn't help that this
is also the first virConnect rather than virDomain prefix
associated with a qemu-specific API.

* src/remote/qemu_protocol.x (qemu_*_domain_monitor_event_*): New
structs and RPC messages.
* src/rpc/gendispatch.pl: Adjust naming conventions.
* daemon/libvirtd.h (daemonClientPrivate): Track qemu events.
* daemon/remote.c (remoteClientFreeFunc): Likewise.
(remoteRelayDomainQemuMonitorEvent)
(qemuDispatchConnectDomainMonitorEventRegister)
(qemuDispatchConnectDomainMonitorEventDeregister): New functions.
* src/remote/remote_driver.c (qemuEvents): Handle qemu events.
(doRemoteOpen): Register for events.
(remoteNetworkBuildEventLifecycle)
(remoteConnectDomainQemuMonitorEventRegister)
(remoteConnectDomainQemuMonitorEventDeregister): New functions.
* src/qemu_protocol-structs: Regenerate.

Signed-off-by: Eric Blake <eblake@redhat.com>
2014-03-20 11:25:37 -06:00
..
lxc_protocol.x Add ACL annotations to all RPC messages 2013-06-24 15:24:36 +01:00
qemu_protocol.x qemu: wire up RPC for qemu monitor events 2014-03-20 11:25:37 -06:00
remote_driver.c qemu: wire up RPC for qemu monitor events 2014-03-20 11:25:37 -06:00
remote_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
remote_protocol.x event: pass reason for PM events 2014-02-12 10:48:16 -07:00