virsh-pool: Remove static from virshStoragePoolList{Free,Collect}

The functions will be used by next patch.

Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Lin Ma 2021-06-16 16:02:50 +08:00 committed by Michal Privoznik
parent 9a51edebf8
commit 64787c80fc
2 changed files with 13 additions and 8 deletions

View 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)
{

View 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);