Re: [PATCHv2 4/6] event: client RPC protocol tweaks for domain lifecycle events

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

 



On Wed, Jan 29, 2014 at 10:49:24AM -0700, Eric Blake wrote:
> The counterpart to the server RPC additions; here, a single
> function can serve both old and new calls, while incoming
> events must be serviced by two different functions.  Again,
> some wise choices in our XDR makes event sharing easier.
> 
> While this only supports lifecycle events, it covers the
> harder part of how Register and RegisterAny interact; the
> remaining 15 events will be a mechanical change in a later
> patch.  For Register, we now have a callbackID locally for
> more efficient cleanup if the RPC fails; we also prefer to
> use the newer RPC where we know it is supported (the older
> RPC must be used if we don't know if RegisterAny is
> supported).
> 
> * src/remote/remote_driver.c (remoteEvents): Register new RPC
> event handler.
> (remoteDomainBuildEventLifecycle): Move guts...
> (remoteDomainBuildEventLifecycleHelper): ...here.
> (remoteDomainBuildEventCallbackLifecycle): New function.
> (remoteConnectDomainEventRegister)
> (remoteConnectDomainEventDeregister)
> (remoteConnectDomainEventRegisterAny)
> (remoteConnectDomainEventDeregisterAny): Use new RPC when supported.

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]