]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Refactor the way new clients are registered with the server
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Aug 2012 11:35:43 +0000 (12:35 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 12:34:25 +0000 (13:34 +0100)
commit42c60a7843c791f60891cf83da1b93998fbc5c9f
treedb946cb5f8b3bd9388efdf4a4061f26f7235cddd
parentee7b4e551e8bc92fd92f37bdc2aed9a86822ba7e
Refactor the way new clients are registered with the server

Currently the virNetServerDispatchNewClient both creates the
virNetServerClientPtr instance and registers it with the
virNetServerPtr internal state. Split the client registration
code out into a separate virNetServerAddClient method to
allow future reuse from other contexts

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/rpc/virnetserver.c