]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
admin: Add support for connection close callbacks
authorErik Skultety <eskultet@redhat.com>
Mon, 12 Oct 2015 15:10:57 +0000 (17:10 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 30 Nov 2015 08:44:28 +0000 (09:44 +0100)
commit6dd7e42d8979f96b2c03da221bdf1434141cba02
treeebd2b672b52885324da68b33a7de65d744cb58e5
parent96a96b843318fdeb2b3e99328befa3ebc98ec593
admin: Add support for connection close callbacks

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 react to
daemon's events like disconnect or keepalive, so asynchronous I/O event polling
is necessary to be enabled too.
include/libvirt/libvirt-admin.h
src/admin/admin_remote.c
src/datatypes.c
src/datatypes.h
src/libvirt-admin.c
src/libvirt_admin_public.syms
tools/virt-admin.c