]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
define g_autoptr cleanup function for virNetworkDHCPLease
authorLaine Stump <laine@redhat.com>
Wed, 24 Jun 2020 17:04:25 +0000 (13:04 -0400)
committerLaine Stump <laine@redhat.com>
Mon, 20 Jul 2020 23:08:07 +0000 (19:08 -0400)
virNetworkDHCPLease and virNetworkDHCPLeaseFree() are declared in the
public API file libvirt-network.h, and we can't pollute that with glib
macro invocations, so put this in src/datatypes.h next to the other
virNetwork items.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/datatypes.h

index d58429ad6c5a25323f5e04ce1f1e9c42c5fd8942..ade3779e435336644421df1c83705e830e759a5f 100644 (file)
@@ -635,6 +635,8 @@ struct _virNetworkPort {
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNetworkPort, virObjectUnref);
 
+/* virNetworkDHCPLease is defined in the public API - libvirt-network.h */
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virNetworkDHCPLease, virNetworkDHCPLeaseFree);
 
 /**
 * _virInterface: