]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh-pool: Remove static from virshStoragePoolList{Free,Collect}
authorLin Ma <lma@suse.com>
Wed, 16 Jun 2021 08:02:50 +0000 (16:02 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 16 Jun 2021 08:32:33 +0000 (10:32 +0200)
The functions will be used by next patch.

Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-pool.c
tools/virsh-pool.h

index 34ed86152e49cabe28311c0a490d480551a1ee0b..18f3839a4c3ea2a9e055d20a64a185aa490bdbfd 100644 (file)
@@ -835,13 +835,7 @@ virshStoragePoolSorter(const void *a, const void *b)
                          virStoragePoolGetName(*pb));
 }
 
-struct virshStoragePoolList {
-    virStoragePoolPtr *pools;
-    size_t npools;
-};
-
-static void
-virshStoragePoolListFree(struct virshStoragePoolList *list)
+void virshStoragePoolListFree(struct virshStoragePoolList *list)
 {
     size_t i;
 
@@ -855,7 +849,7 @@ virshStoragePoolListFree(struct virshStoragePoolList *list)
     g_free(list);
 }
 
-static struct virshStoragePoolList *
+struct virshStoragePoolList *
 virshStoragePoolListCollect(vshControl *ctl,
                             unsigned int flags)
 {
index 219f0eea42044f6714eb86a2ef548fe13daae082..d7bacd8731733f1b8de108a46b1da8f626a22e57 100644 (file)
@@ -40,3 +40,14 @@ typedef struct virshPoolEventCallback virshPoolEventCallback;
 extern virshPoolEventCallback virshPoolEventCallbacks[];
 
 extern const vshCmdDef storagePoolCmds[];
+
+struct virshStoragePoolList {
+    virStoragePoolPtr *pools;
+    size_t npools;
+};
+
+struct virshStoragePoolList *
+virshStoragePoolListCollect(vshControl *ctl,
+                            unsigned int flags);
+
+void virshStoragePoolListFree(struct virshStoragePoolList *list);