mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: migration: Move and unexport qemuMigrationParamsSetString
The function is not used outside of the src/qemu/qemu_migration_params.c file so unexport it. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
f94e5b2157
commit
d49c6e4623
@ -777,6 +777,21 @@ qemuMigrationParamsApply(virQEMUDriverPtr driver,
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
qemuMigrationParamsSetString(qemuMigrationParamsPtr migParams,
|
||||
qemuMigrationParam param,
|
||||
const char *value)
|
||||
{
|
||||
if (qemuMigrationParamsCheckType(param, QEMU_MIGRATION_PARAM_TYPE_STRING) < 0)
|
||||
return -1;
|
||||
|
||||
if (VIR_STRDUP(migParams->params[param].value.s, value) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* qemuMigrationParamsEnableTLS
|
||||
* @driver: pointer to qemu driver
|
||||
* @vm: domain object
|
||||
@ -967,21 +982,6 @@ qemuMigrationParamsFetch(virQEMUDriverPtr driver,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
qemuMigrationParamsSetString(qemuMigrationParamsPtr migParams,
|
||||
qemuMigrationParam param,
|
||||
const char *value)
|
||||
{
|
||||
if (qemuMigrationParamsCheckType(param, QEMU_MIGRATION_PARAM_TYPE_STRING) < 0)
|
||||
return -1;
|
||||
|
||||
if (VIR_STRDUP(migParams->params[param].value.s, value) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns -1 on error,
|
||||
* 0 on success,
|
||||
|
@ -112,11 +112,6 @@ qemuMigrationParamsFetch(virQEMUDriverPtr driver,
|
||||
int asyncJob,
|
||||
qemuMigrationParamsPtr *migParams);
|
||||
|
||||
int
|
||||
qemuMigrationParamsSetString(qemuMigrationParamsPtr migParams,
|
||||
qemuMigrationParam param,
|
||||
const char *value);
|
||||
|
||||
int
|
||||
qemuMigrationParamsGetULL(qemuMigrationParamsPtr migParams,
|
||||
qemuMigrationParam param,
|
||||
|
Loading…
Reference in New Issue
Block a user