storage: Privatize virStoragePoolObj and virStorageVolDefList

Move the structures into virstorageobj so that both are known
within virstorageobj.c.
This commit is contained in:
John Ferlan 2017-07-26 15:13:28 -04:00
parent ba6575e2f6
commit 8fe48f20f8
3 changed files with 20 additions and 19 deletions

View File

@ -75,10 +75,6 @@ struct _virStorageVolDef {
typedef struct _virStorageVolDefList virStorageVolDefList;
typedef virStorageVolDefList *virStorageVolDefListPtr;
struct _virStorageVolDefList {
size_t count;
virStorageVolDefPtr *objs;
};
VIR_ENUM_DECL(virStorageVol)

View File

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

View File

@ -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 {