rpc: Make virNetServerAddClient function dynamic

As opposed to 'static'; by exporting it (privately).

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Daniel P. Berrange 2015-06-04 19:16:32 +02:00 committed by Martin Kletzander
parent 9cb18291af
commit 404094187a
3 changed files with 6 additions and 2 deletions

View File

@ -77,6 +77,7 @@ xdr_virNetMessageError;
# rpc/virnetserver.h
virNetServerAddClient;
virNetServerAddProgram;
virNetServerAddService;
virNetServerAddShutdownInhibition;

View File

@ -259,8 +259,8 @@ static int virNetServerDispatchNewMessage(virNetServerClientPtr client,
}
static int virNetServerAddClient(virNetServerPtr srv,
virNetServerClientPtr client)
int virNetServerAddClient(virNetServerPtr srv,
virNetServerClientPtr client)
{
virObjectLock(srv);

View File

@ -79,6 +79,9 @@ int virNetServerAddService(virNetServerPtr srv,
virNetServerServicePtr svc,
const char *mdnsEntryName);
int virNetServerAddClient(virNetServerPtr srv,
virNetServerClientPtr client);
int virNetServerAddProgram(virNetServerPtr srv,
virNetServerProgramPtr prog);