[libvirt] [PATCH v2 3/5] Add callback to virNetClient to be invoked on connection close

Jiri Denemark jdenemar at redhat.com
Thu Jul 26 13:17:21 UTC 2012


On Tue, Jul 24, 2012 at 14:17:03 +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Allow detection of socket close in virNetClient via an callback

s/an/a/

> function, triggered on any condition that causes the socket to
> be close.

s/close/closed/

> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/libvirt_private.syms |    2 +-
>  src/rpc/virnetclient.c   |   35 +++++++++++++++++++++++++++++++----
>  src/rpc/virnetclient.h   |    9 +++++++++
>  3 files changed, 41 insertions(+), 5 deletions(-)
> 
> diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
> index 734c881..83ca99f 100644
> --- a/src/libvirt_private.syms
> +++ b/src/libvirt_private.syms
> @@ -1319,7 +1319,7 @@ virNetClientSendNoReply;
>  virNetClientSendNonBlock;
>  virNetClientSendWithReply;
>  virNetClientSendWithReplyStream;
> -virNetClientSetEOFNotify;
> +virNetClientSetCloseCallback;
>  virNetClientSetSASLSession;
>  virNetClientSetTLSSession;

Oops, how did virNetClientSetEOFNotify sneak in?

ACK




More information about the libvir-list mailing list