admin: Add virAdmConnectLookupServer

It does not have a suffix ByName because there are no other means of
looking up the server and since the name is known, this should be the
preferred one.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander
2016-03-01 17:33:37 +01:00
parent cce90a459a
commit b9a3ce95ce
8 changed files with 80 additions and 1 deletions

View File

@@ -56,3 +56,13 @@ adminConnectListServers(virNetDaemonPtr dmn,
cleanup:
return ret;
}
virNetServerPtr
adminConnectLookupServer(virNetDaemonPtr dmn,
const char *name,
unsigned int flags)
{
virCheckFlags(flags, NULL);
return virNetDaemonGetServer(dmn, name);
}