mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35: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));
|
virStoragePoolGetName(*pb));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct virshStoragePoolList {
|
void virshStoragePoolListFree(struct virshStoragePoolList *list)
|
||||||
virStoragePoolPtr *pools;
|
|
||||||
size_t npools;
|
|
||||||
};
|
|
||||||
|
|
||||||
static void
|
|
||||||
virshStoragePoolListFree(struct virshStoragePoolList *list)
|
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
@ -855,7 +849,7 @@ virshStoragePoolListFree(struct virshStoragePoolList *list)
|
|||||||
g_free(list);
|
g_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct virshStoragePoolList *
|
struct virshStoragePoolList *
|
||||||
virshStoragePoolListCollect(vshControl *ctl,
|
virshStoragePoolListCollect(vshControl *ctl,
|
||||||
unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
|
@ -40,3 +40,14 @@ typedef struct virshPoolEventCallback virshPoolEventCallback;
|
|||||||
extern virshPoolEventCallback virshPoolEventCallbacks[];
|
extern virshPoolEventCallback virshPoolEventCallbacks[];
|
||||||
|
|
||||||
extern const vshCmdDef storagePoolCmds[];
|
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