]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Adjust names of qemuDomainSecretInfoType enums
authorJohn Ferlan <jferlan@redhat.com>
Mon, 2 May 2016 11:20:32 +0000 (07:20 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 5 May 2016 18:47:50 +0000 (14:47 -0400)
From a review after push, add the "_TYPE" into the name.

Also use qemuDomainSecretInfoType in the struct rather than int
with the comment field containing the struct name

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h

index 173f82c8183a368a44454edb2262ed72e8f9a086..eabc375a894ffabc0bf0b4e0e857bd48a69c08e7 100644 (file)
@@ -855,7 +855,7 @@ qemuDomainSecretPlainSetup(virConnectPtr conn,
     int secretType = VIR_SECRET_USAGE_TYPE_ISCSI;
     const char *protocolstr = virStorageNetProtocolTypeToString(protocol);
 
-    secinfo->type = VIR_DOMAIN_SECRET_INFO_PLAIN;
+    secinfo->type = VIR_DOMAIN_SECRET_INFO_TYPE_PLAIN;
     if (VIR_STRDUP(secinfo->s.plain.username, authdef->username) < 0)
         return -1;
 
index 95f821c493673bd7c0ee58cc351b3ba037556746..d16a0829943abca0ea88d965ac06e2b844198f20 100644 (file)
@@ -241,9 +241,9 @@ struct _qemuDomainObjPrivate {
 
 /* Type of domain secret */
 typedef enum {
-    VIR_DOMAIN_SECRET_INFO_PLAIN = 0,
+    VIR_DOMAIN_SECRET_INFO_TYPE_PLAIN = 0,
 
-    VIR_DOMAIN_SECRET_INFO_LAST
+    VIR_DOMAIN_SECRET_INFO_TYPE_LAST
 } qemuDomainSecretInfoType;
 
 typedef struct _qemuDomainSecretPlain qemuDomainSecretPlain;
@@ -256,7 +256,7 @@ struct _qemuDomainSecretPlain {
 typedef struct _qemuDomainSecretInfo qemuDomainSecretInfo;
 typedef qemuDomainSecretInfo *qemuDomainSecretInfoPtr;
 struct _qemuDomainSecretInfo {
-    int type;  /* qemuDomainSecretInfoType */
+    qemuDomainSecretInfoType type;
     union {
         qemuDomainSecretPlain plain;
     } s;