]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh-util.h: Fix ordering of virshXXXFree functions
authorMichal Privoznik <mprivozn@redhat.com>
Sun, 26 Sep 2021 06:23:32 +0000 (08:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 6 Oct 2021 07:20:45 +0000 (09:20 +0200)
Currently the order of virshXXXFree functions in the header file
does not correspond to the order in the corresponding .c file.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
tools/virsh-util.h

index 6115b05d4d99add31df296d7e82e29bf24fa7f74..f7e8116de32b608aa18abcda4dfaf7912320a053 100644 (file)
@@ -40,16 +40,10 @@ virshCommandOptDomain(vshControl *ctl,
                       const char **name);
 
 typedef virDomain virshDomain;
-
 void
 virshDomainFree(virDomainPtr dom);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virshDomain, virshDomainFree);
 
-typedef virSecret virshSecret;
-void
-virshSecretFree(virSecretPtr secret);
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(virshSecret, virshSecretFree);
-
 typedef virDomainCheckpoint virshDomainCheckpoint;
 void
 virshDomainCheckpointFree(virDomainCheckpointPtr chk);
@@ -60,6 +54,11 @@ void
 virshDomainSnapshotFree(virDomainSnapshotPtr snap);
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(virshDomainSnapshot, virshDomainSnapshotFree);
 
+typedef virSecret virshSecret;
+void
+virshSecretFree(virSecretPtr secret);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(virshSecret, virshSecretFree);
+
 int
 virshDomainState(vshControl *ctl,
                  virDomainPtr dom,