mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
conf: change virDomainNetRemove from static to global
This exact code is duplicated in qemuDomainDetachNetDevice().
This commit is contained in:
parent
8639a42059
commit
ac9ca01cc4
@ -7084,7 +7084,7 @@ int virDomainNetIndexByMac(virDomainDefPtr def, const unsigned char *mac)
|
||||
return -1;
|
||||
}
|
||||
|
||||
static void virDomainNetRemove(virDomainDefPtr def, size_t i)
|
||||
void virDomainNetRemove(virDomainDefPtr def, size_t i)
|
||||
{
|
||||
virDomainNetDefPtr net = def->nets[i];
|
||||
|
||||
|
@ -1902,6 +1902,7 @@ int virDomainDiskRemoveByName(virDomainDefPtr def, const char *name);
|
||||
|
||||
int virDomainNetIndexByMac(virDomainDefPtr def, const unsigned char *mac);
|
||||
int virDomainNetInsert(virDomainDefPtr def, virDomainNetDefPtr net);
|
||||
void virDomainNetRemove(virDomainDefPtr def, size_t i);
|
||||
int virDomainNetRemoveByMac(virDomainDefPtr def, const unsigned char *mac);
|
||||
|
||||
int virDomainHostdevInsert(virDomainDefPtr def, virDomainHostdevDefPtr hostdev);
|
||||
|
@ -389,6 +389,7 @@ virDomainNetGetActualType;
|
||||
virDomainNetGetActualVirtPortProfile;
|
||||
virDomainNetIndexByMac;
|
||||
virDomainNetInsert;
|
||||
virDomainNetRemove;
|
||||
virDomainNetRemoveByMac;
|
||||
virDomainNetTypeToString;
|
||||
virDomainNostateReasonTypeFromString;
|
||||
|
Loading…
Reference in New Issue
Block a user