提交 8fe48f20 编写于 作者: J John Ferlan

storage: Privatize virStoragePoolObj and virStorageVolDefList

Move the structures into virstorageobj so that both are known
within virstorageobj.c.
上级 ba6575e2
...@@ -75,10 +75,6 @@ struct _virStorageVolDef { ...@@ -75,10 +75,6 @@ struct _virStorageVolDef {
typedef struct _virStorageVolDefList virStorageVolDefList; typedef struct _virStorageVolDefList virStorageVolDefList;
typedef virStorageVolDefList *virStorageVolDefListPtr; typedef virStorageVolDefList *virStorageVolDefListPtr;
struct _virStorageVolDefList {
size_t count;
virStorageVolDefPtr *objs;
};
VIR_ENUM_DECL(virStorageVol) VIR_ENUM_DECL(virStorageVol)
......
...@@ -37,6 +37,26 @@ ...@@ -37,6 +37,26 @@
VIR_LOG_INIT("conf.virstorageobj"); 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 virStoragePoolObjPtr
virStoragePoolObjNew(void) virStoragePoolObjNew(void)
{ {
......
...@@ -27,21 +27,6 @@ ...@@ -27,21 +27,6 @@
typedef struct _virStoragePoolObj virStoragePoolObj; typedef struct _virStoragePoolObj virStoragePoolObj;
typedef virStoragePoolObj *virStoragePoolObjPtr; 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 struct _virStoragePoolObjList virStoragePoolObjList;
typedef virStoragePoolObjList *virStoragePoolObjListPtr; typedef virStoragePoolObjList *virStoragePoolObjListPtr;
struct _virStoragePoolObjList { struct _virStoragePoolObjList {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册