mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 23:24:23 +03:00
qemu: Rename virQEMUBuildObjectCommandlineFromJSON
s/virQEMUBuildObjectCommandlineFromJSON/virQEMUBuildObjectCommandlineFromJSONType/ The function adds the object of a certain type. Change the name so that we make room for the generic function. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a47508d991
commit
bf26dd222f
@ -2601,7 +2601,7 @@ virQEMUBuildCommandLineJSON;
|
||||
virQEMUBuildCommandLineJSONArrayBitmap;
|
||||
virQEMUBuildCommandLineJSONArrayNumbered;
|
||||
virQEMUBuildDriveCommandlineFromJSON;
|
||||
virQEMUBuildObjectCommandlineFromJSON;
|
||||
virQEMUBuildObjectCommandlineFromJSONType;
|
||||
virQEMUBuildQemuImgKeySecretOpts;
|
||||
|
||||
|
||||
|
@ -550,7 +550,7 @@ qemuBuildObjectSecretCommandLine(virCommandPtr cmd,
|
||||
if (qemuBuildSecretInfoProps(secinfo, &props) < 0)
|
||||
return -1;
|
||||
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSON("secret",
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSONType("secret",
|
||||
secinfo->s.aes.alias,
|
||||
props)))
|
||||
goto cleanup;
|
||||
@ -750,7 +750,7 @@ qemuBuildTLSx509CommandLine(virCommandPtr cmd,
|
||||
qemuCaps, &props) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSON("tls-creds-x509",
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSONType("tls-creds-x509",
|
||||
alias, props)))
|
||||
goto cleanup;
|
||||
|
||||
@ -3224,7 +3224,7 @@ qemuBuildMemoryCellBackendStr(virDomainDefPtr def,
|
||||
def, &mem, priv->autoNodeset, false)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (!(*backendStr = virQEMUBuildObjectCommandlineFromJSON(backendType,
|
||||
if (!(*backendStr = virQEMUBuildObjectCommandlineFromJSONType(backendType,
|
||||
alias,
|
||||
props)))
|
||||
goto cleanup;
|
||||
@ -3263,7 +3263,7 @@ qemuBuildMemoryDimmBackendStr(virDomainMemoryDefPtr mem,
|
||||
def, mem, priv->autoNodeset, true) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = virQEMUBuildObjectCommandlineFromJSON(backendType, alias, props);
|
||||
ret = virQEMUBuildObjectCommandlineFromJSONType(backendType, alias, props);
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(alias);
|
||||
@ -5560,7 +5560,7 @@ qemuBuildRNGBackendStr(virDomainRNGDefPtr rng,
|
||||
if (qemuBuildRNGBackendProps(rng, qemuCaps, &type, &props) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = virQEMUBuildObjectCommandlineFromJSON(type, alias, props);
|
||||
ret = virQEMUBuildObjectCommandlineFromJSONType(type, alias, props);
|
||||
|
||||
cleanup:
|
||||
VIR_FREE(alias);
|
||||
@ -8826,7 +8826,7 @@ qemuBuildShmemBackendMemStr(virDomainShmemDefPtr shmem)
|
||||
if (virAsprintf(&alias, "shmmem-%s", shmem->info.alias) < 0)
|
||||
goto cleanup;
|
||||
|
||||
ret = virQEMUBuildObjectCommandlineFromJSON("memory-backend-file",
|
||||
ret = virQEMUBuildObjectCommandlineFromJSONType("memory-backend-file",
|
||||
alias,
|
||||
props);
|
||||
cleanup:
|
||||
@ -9766,7 +9766,7 @@ qemuBuildMasterPRCommandLine(virCommandPtr cmd,
|
||||
if (qemuBuildPRManagerInfoProps(disk, &props) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSON("pr-manager-helper",
|
||||
if (!(tmp = virQEMUBuildObjectCommandlineFromJSONType("pr-manager-helper",
|
||||
disk->src->pr->mgralias,
|
||||
props)))
|
||||
goto cleanup;
|
||||
|
@ -242,7 +242,7 @@ virQEMUBuildCommandLineJSON(virJSONValuePtr value,
|
||||
|
||||
|
||||
char *
|
||||
virQEMUBuildObjectCommandlineFromJSON(const char *type,
|
||||
virQEMUBuildObjectCommandlineFromJSONType(const char *type,
|
||||
const char *alias,
|
||||
virJSONValuePtr props)
|
||||
{
|
||||
|
@ -43,7 +43,7 @@ int virQEMUBuildCommandLineJSON(virJSONValuePtr value,
|
||||
virBufferPtr buf,
|
||||
virQEMUBuildCommandLineJSONArrayFormatFunc array);
|
||||
|
||||
char *virQEMUBuildObjectCommandlineFromJSON(const char *type,
|
||||
char *virQEMUBuildObjectCommandlineFromJSONType(const char *type,
|
||||
const char *alias,
|
||||
virJSONValuePtr props);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user