diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 7135024161f661cf66dc7e0a55531eba44d10ee0..b99471814c1a21e9688806f9a9c4005d2d5b66d1 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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]; diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index c3f12ad227e89e3db3fd474768073cbe91547468..87b410336fe8bd600b9c218035fb067178362833 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -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); diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index a6d741a6b13448aa30877c6df2892eee1126897b..2639b48a3173e5f33089306dead0b2c4cf3bb2a7 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -389,6 +389,7 @@ virDomainNetGetActualType; virDomainNetGetActualVirtPortProfile; virDomainNetIndexByMac; virDomainNetInsert; +virDomainNetRemove; virDomainNetRemoveByMac; virDomainNetTypeToString; virDomainNostateReasonTypeFromString;