Re: [libvirt] [PATCH v2 7/9] admin: Add support for connection close callbacks

2015-11-04 Thread Erik Skultety
>> #undef DECLARE_CLASS_COMMON >> #undef DECLARE_CLASS_LOCKABLE >> @@ -822,6 +825,9 @@ virAdmConnectNew(void) >> if (!(ret = virObjectLockableNew(virAdmConnectClass))) >> return NULL; >> >> +if (!(ret->closeCallback = >> virObjectLockableNew(virAdmConnectCloseCallbackDataClas

Re: [libvirt] [PATCH v2 7/9] admin: Add support for connection close callbacks

2015-11-04 Thread John Ferlan
On 10/16/2015 02:12 PM, Erik Skultety wrote: > As we need a client disconnect handler, we also need a mechanism to register > such handlers for a client. This patch introduced both the close callbacks and > also the client vshAdmCatchDisconnect handler to be registered with it. By > registering t

Re: [libvirt] [PATCH v2 7/9] admin: Add support for connection close callbacks

2015-11-03 Thread Martin Kletzander
On Fri, Oct 16, 2015 at 08:12:24PM +0200, Erik Skultety wrote: As we need a client disconnect handler, we also need a mechanism to register such handlers for a client. This patch introduced both the close callbacks and also the client vshAdmCatchDisconnect handler to be registered with it. By reg

[libvirt] [PATCH v2 7/9] admin: Add support for connection close callbacks

2015-10-16 Thread Erik Skultety
As we need a client disconnect handler, we also need a mechanism to register such handlers for a client. This patch introduced both the close callbacks and also the client vshAdmCatchDisconnect handler to be registered with it. By registering the handler we still need to make sure the client can re