Re: [libvirt] [PATCH 1/5] Add public API to register a callback to be invoked on connection close

2012-07-20 Thread Daniel P. Berrange
On Thu, Jul 19, 2012 at 11:46:28AM -0600, Eric Blake wrote: > On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: > > From: "Daniel P. Berrange" > > > > Define a new virConnectSetCloseCallback() public API which allows > > registering a callback to be invoked when the connection to a > > hypervisor

Re: [libvirt] [PATCH 1/5] Add public API to register a callback to be invoked on connection close

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > Define a new virConnectSetCloseCallback() public API which allows > registering a callback to be invoked when the connection to a > hypervisor is closed. The callback is provided with the reason for > the close, wh

[libvirt] [PATCH 1/5] Add public API to register a callback to be invoked on connection close

2012-07-19 Thread Daniel P. Berrange
From: "Daniel P. Berrange" Define a new virConnectSetCloseCallback() public API which allows registering a callback to be invoked when the connection to a hypervisor is closed. The callback is provided with the reason for the close, which may be 'error', 'eof' or 'keepalive'. Signed-off-by: Dani