]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Add public API to register a callback to be invoked on connection close
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 19 Jul 2012 10:01:07 +0000 (11:01 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 30 Jul 2012 09:08:40 +0000 (10:08 +0100)
commit6ed5a1b9bd6240b8f2736790e48dd1c284c2e0e1
tree8a8fdda02d279adee8e3e8c19afcc44c640737f9
parent1679353496bb8a61e38c3aee2e26458e2aeee5ab
Add public API to register a callback to be invoked on connection close

Define new virConnect{Register,Unregister}CloseCallback() public APIs
which allows registering/unregistering 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', 'client'
or 'keepalive'.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
include/libvirt/libvirt.h.in
src/datatypes.c
src/datatypes.h
src/libvirt.c
src/libvirt_public.syms