mirror of https://gitee.com/openkylin/libvirt.git
storage: Privatize virStoragePoolObj and virStorageVolDefList
Move the structures into virstorageobj so that both are known within virstorageobj.c.
This commit is contained in:
parent
ba6575e2f6
commit
8fe48f20f8
|
@ -75,10 +75,6 @@ struct _virStorageVolDef {
|
|||
|
||||
typedef struct _virStorageVolDefList virStorageVolDefList;
|
||||
typedef virStorageVolDefList *virStorageVolDefListPtr;
|
||||
struct _virStorageVolDefList {
|
||||
size_t count;
|
||||
virStorageVolDefPtr *objs;
|
||||
};
|
||||
|
||||
VIR_ENUM_DECL(virStorageVol)
|
||||
|
||||
|
|
|
@ -37,6 +37,26 @@
|
|||
VIR_LOG_INIT("conf.virstorageobj");
|
||||
|
||||
|
||||
struct _virStorageVolDefList {
|
||||
size_t count;
|
||||
virStorageVolDefPtr *objs;
|
||||
};
|
||||
|
||||
struct _virStoragePoolObj {
|
||||
virMutex lock;
|
||||
|
||||
char *configFile;
|
||||
char *autostartLink;
|
||||
bool active;
|
||||
bool autostart;
|
||||
unsigned int asyncjobs;
|
||||
|
||||
virStoragePoolDefPtr def;
|
||||
virStoragePoolDefPtr newDef;
|
||||
|
||||
virStorageVolDefList volumes;
|
||||
};
|
||||
|
||||
virStoragePoolObjPtr
|
||||
virStoragePoolObjNew(void)
|
||||
{
|
||||
|
|
|
@ -27,21 +27,6 @@
|
|||
typedef struct _virStoragePoolObj virStoragePoolObj;
|
||||
typedef virStoragePoolObj *virStoragePoolObjPtr;
|
||||
|
||||
struct _virStoragePoolObj {
|
||||
virMutex lock;
|
||||
|
||||
char *configFile;
|
||||
char *autostartLink;
|
||||
bool active;
|
||||
bool autostart;
|
||||
unsigned int asyncjobs;
|
||||
|
||||
virStoragePoolDefPtr def;
|
||||
virStoragePoolDefPtr newDef;
|
||||
|
||||
virStorageVolDefList volumes;
|
||||
};
|
||||
|
||||
typedef struct _virStoragePoolObjList virStoragePoolObjList;
|
||||
typedef virStoragePoolObjList *virStoragePoolObjListPtr;
|
||||
struct _virStoragePoolObjList {
|
||||
|
|
Loading…
Reference in New Issue