storage_conf: Introduce virStoragePoolAuthSecretPtr

Split out the _virStoragePoolAuthSecret data from _virStoragePoolAuthCephx
into its own structure
This commit is contained in:
John Ferlan 2013-07-13 14:15:15 -04:00
parent 26a8431144
commit 92c5591fd2

View File

@ -151,6 +151,14 @@ enum virStoragePoolAuthType {
};
VIR_ENUM_DECL(virStoragePoolAuthType)
typedef struct _virStoragePoolAuthSecret virStoragePoolAuthSecret;
typedef virStoragePoolAuthSecret *virStoragePoolAuthSecretPtr;
struct _virStoragePoolAuthSecret {
unsigned char uuid[VIR_UUID_BUFLEN];
char *usage;
bool uuidUsable;
};
typedef struct _virStoragePoolAuthChap virStoragePoolAuthChap;
typedef virStoragePoolAuthChap *virStoragePoolAuthChapPtr;
struct _virStoragePoolAuthChap {
@ -162,11 +170,7 @@ typedef struct _virStoragePoolAuthCephx virStoragePoolAuthCephx;
typedef virStoragePoolAuthCephx *virStoragePoolAuthCephxPtr;
struct _virStoragePoolAuthCephx {
char *username;
struct {
unsigned char uuid[VIR_UUID_BUFLEN];
char *usage;
bool uuidUsable;
} secret;
virStoragePoolAuthSecret secret;
};
/*