mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 21:25:25 +00:00
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:
parent
9a51edebf8
commit
64787c80fc
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user