mirror of https://gitee.com/openkylin/libvirt.git
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
|
/* qemuMigrationParamsEnableTLS
|
||||||
* @driver: pointer to qemu driver
|
* @driver: pointer to qemu driver
|
||||||
* @vm: domain object
|
* @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,
|
* Returns -1 on error,
|
||||||
* 0 on success,
|
* 0 on success,
|
||||||
|
|
|
@ -112,11 +112,6 @@ qemuMigrationParamsFetch(virQEMUDriverPtr driver,
|
||||||
int asyncJob,
|
int asyncJob,
|
||||||
qemuMigrationParamsPtr *migParams);
|
qemuMigrationParamsPtr *migParams);
|
||||||
|
|
||||||
int
|
|
||||||
qemuMigrationParamsSetString(qemuMigrationParamsPtr migParams,
|
|
||||||
qemuMigrationParam param,
|
|
||||||
const char *value);
|
|
||||||
|
|
||||||
int
|
int
|
||||||
qemuMigrationParamsGetULL(qemuMigrationParamsPtr migParams,
|
qemuMigrationParamsGetULL(qemuMigrationParamsPtr migParams,
|
||||||
qemuMigrationParam param,
|
qemuMigrationParam param,
|
||||||
|
|
Loading…
Reference in New Issue