]> git.ipfire.org Git - thirdparty/libvirt.git/commit
event: convert remaining domain events to new style
authorEric Blake <eblake@redhat.com>
Thu, 9 Jan 2014 18:22:53 +0000 (11:22 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 12 Feb 2014 17:48:16 +0000 (10:48 -0700)
commit158795d20ea0ae928feb8a3691e6d8340cb8a92a
tree2fe7894a148bc26c3b45ef82b392fe5cf26b5db2
parent355ea626507ff74ed9b2db1c9946169cffbe256a
event: convert remaining domain events to new style

Following the patterns established by lifecycle events, this
creates all the new RPC calls needed to pass callback IDs
for every domain event, and changes the limits in client and
server codes to use modern style when possible.

I've tested all combinations: both 'old client and new server'
and 'new client and old server' continue to work with the old
RPCs, and 'new client and new server' benefit from server-side
filtering with the new RPCs.

* src/remote/remote_protocol.x (REMOTE_PROC_DOMAIN_EVENT_*): Add
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_* counterparts.
* daemon/remote.c (remoteRelayDomainEvent*): Send callbackID via
newer RPC when used with new-style registration.
(remoteDispatchConnectDomainEventCallbackRegisterAny): Extend to
cover all domain events.
* src/remote/remote_driver.c (remoteDomainBuildEvent*): Add new
Callback and Helper functions.
(remoteEvents): Match order of RPC numbers, register new handlers.
(remoteConnectDomainEventRegisterAny)
(remoteConnectDomainEventDeregisterAny): Extend to cover all
domain events.
* src/remote_protocol-structs: Regenerate.

Signed-off-by: Eric Blake <eblake@redhat.com>
daemon/remote.c
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs