mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-31 00:45:18 +00:00
virnetworkobj: Make virNetworkObjFindBy{UUID,Name}Locked() static again
These functions were made exportable back in 3aa3e072 when I was splitting network code into parsing and list management parts. Since then the split is finished now and these two functions do not need to be exported anymore. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
8e2a535cf4
commit
d8447faa61
@ -127,16 +127,7 @@ virNetworkObjListNew(void)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* virNetworkObjFindByUUIDLocked:
|
||||
* @nets: list of network objects
|
||||
* @uuid: network uuid to find
|
||||
*
|
||||
* This functions requires @nets to be locked already!
|
||||
*
|
||||
* Returns: not locked, but ref'd network object.
|
||||
*/
|
||||
virNetworkObjPtr
|
||||
static virNetworkObjPtr
|
||||
virNetworkObjFindByUUIDLocked(virNetworkObjListPtr nets,
|
||||
const unsigned char *uuid)
|
||||
{
|
||||
@ -193,16 +184,7 @@ virNetworkObjSearchName(const void *payload,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* virNetworkObjFindByNameLocked:
|
||||
* @nets: list of network objects
|
||||
* @name: network name to find
|
||||
*
|
||||
* This functions requires @nets to be locked already!
|
||||
*
|
||||
* Returns: not locked, but ref'd network object.
|
||||
*/
|
||||
virNetworkObjPtr
|
||||
static virNetworkObjPtr
|
||||
virNetworkObjFindByNameLocked(virNetworkObjListPtr nets,
|
||||
const char *name)
|
||||
{
|
||||
|
@ -65,18 +65,10 @@ virNetworkObjIsActive(const virNetworkObj *net)
|
||||
virNetworkObjListPtr
|
||||
virNetworkObjListNew(void);
|
||||
|
||||
virNetworkObjPtr
|
||||
virNetworkObjFindByUUIDLocked(virNetworkObjListPtr nets,
|
||||
const unsigned char *uuid);
|
||||
|
||||
virNetworkObjPtr
|
||||
virNetworkObjFindByUUID(virNetworkObjListPtr nets,
|
||||
const unsigned char *uuid);
|
||||
|
||||
virNetworkObjPtr
|
||||
virNetworkObjFindByNameLocked(virNetworkObjListPtr nets,
|
||||
const char *name);
|
||||
|
||||
virNetworkObjPtr
|
||||
virNetworkObjFindByName(virNetworkObjListPtr nets,
|
||||
const char *name);
|
||||
|
@ -941,9 +941,7 @@ virNetworkObjBridgeInUse;
|
||||
virNetworkObjDeleteConfig;
|
||||
virNetworkObjEndAPI;
|
||||
virNetworkObjFindByName;
|
||||
virNetworkObjFindByNameLocked;
|
||||
virNetworkObjFindByUUID;
|
||||
virNetworkObjFindByUUIDLocked;
|
||||
virNetworkObjGetPersistentDef;
|
||||
virNetworkObjListExport;
|
||||
virNetworkObjListForEach;
|
||||
|
Loading…
x
Reference in New Issue
Block a user