Re: [PATCHv2 5/6] event: convert remaining domain events to new style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 29, 2014 at 10:49:25AM -0700, Eric Blake wrote:
> 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@xxxxxxxxxx>
> ---
>  daemon/remote.c              | 240 ++++++++++++++----
>  src/remote/remote_driver.c   | 581 ++++++++++++++++++++++++++++++++++---------
>  src/remote/remote_protocol.x | 155 +++++++++++-
>  src/remote_protocol-structs  |  75 ++++++
>  4 files changed, 886 insertions(+), 165 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]