From: John Ferlan Date: Wed, 22 Jun 2016 10:11:59 +0000 (-0400) Subject: qemu: Make qemuBuildSecretInfoProps global X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c6910bd4c7d6f2da319e2ea25a3844fde3e121ca;p=libvirt.git qemu: Make qemuBuildSecretInfoProps global Need to create the object for a hotplug disk --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index fbb5fdb938..71e9e637bf 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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) { diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index 9ff4edbdcf..c4d0567036 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -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,