]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage_conf: Introduce virStoragePoolAuthSecretPtr
authorJohn Ferlan <jferlan@redhat.com>
Sat, 13 Jul 2013 18:15:15 +0000 (14:15 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jul 2013 16:41:12 +0000 (12:41 -0400)
Split out the _virStoragePoolAuthSecret data from _virStoragePoolAuthCephx
into its own structure

src/conf/storage_conf.h

index 98339ef973c38709439441bf325faa096cbb104d..5fbecf48740cf36a7e134e71500bbdca277ee8e2 100644 (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;
 };
 
 /*