]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Make qemuBuildSecretInfoProps global
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Jun 2016 10:11:59 +0000 (06:11 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 24 Jun 2016 17:04:38 +0000 (13:04 -0400)
Need to create the object for a hotplug disk

src/qemu/qemu_command.c
src/qemu/qemu_command.h

index fbb5fdb938affa87bbf876bbbb75d4a8131f81b8..71e9e637bff57c2cdb1d2058c82f16a42926df14 100644 (file)
@@ -517,7 +517,7 @@ qemuNetworkDriveGetPort(int protocol,
  * Returns 0 on success with the filled in JSON property; otherwise,
  * returns -1 on failure error message set.
  */
-static int
+int
 qemuBuildSecretInfoProps(qemuDomainSecretInfoPtr secinfo,
                          virJSONValuePtr *propsret)
 {
index 9ff4edbdcfc8cdf867da02ebab61848edf02438d..c4d056703682537b170d01ee46de65f311e09a00 100644 (file)
@@ -61,6 +61,10 @@ virCommandPtr qemuBuildCommandLine(virQEMUDriverPtr driver,
                                    const char *domainLibDir)
     ATTRIBUTE_NONNULL(15);
 
+/* Generate the object properties for a secret */
+int qemuBuildSecretInfoProps(qemuDomainSecretInfoPtr secinfo,
+                             virJSONValuePtr *propsret);
+
 /* Generate '-device' string for chardev device */
 int
 qemuBuildChrDeviceStr(char **deviceStr,