1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-27 07:22:07 +03:00

cpu: Rename cpuGetModels

The new name is virCPUGetModels.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2016-11-04 14:20:39 +01:00
parent 007fb4388f
commit b7011dfe44
8 changed files with 13 additions and 13 deletions

View File

@ -831,7 +831,7 @@ cpuModelIsAllowed(const char *model,
}
/**
* cpuGetModels:
* virCPUGetModels:
*
* @arch: CPU architecture
* @models: where to store the NULL-terminated list of supported models
@ -845,7 +845,7 @@ cpuModelIsAllowed(const char *model,
* or -1 on error.
*/
int
cpuGetModels(virArch arch, char ***models)
virCPUGetModels(virArch arch, char ***models)
{
struct cpuArchDriver *driver;

View File

@ -105,7 +105,7 @@ typedef virCPUDataPtr
(*cpuArchDataParse) (xmlXPathContextPtr ctxt);
typedef int
(*cpuArchGetModels) (char ***models);
(*virCPUArchGetModels)(char ***models);
typedef int
(*virCPUArchTranslate)(virCPUDefPtr cpu,
@ -128,7 +128,7 @@ struct cpuArchDriver {
virCPUArchDataCheckFeature dataCheckFeature;
cpuArchDataFormat dataFormat;
cpuArchDataParse dataParse;
cpuArchGetModels getModels;
virCPUArchGetModels getModels;
virCPUArchTranslate translate;
};
@ -220,7 +220,7 @@ cpuModelIsAllowed(const char *model,
ATTRIBUTE_NONNULL(1);
int
cpuGetModels(virArch arch, char ***models);
virCPUGetModels(virArch arch, char ***models);
int
virCPUTranslate(virArch arch,

View File

@ -876,7 +876,7 @@ ppc64DriverBaseline(virCPUDefPtr *cpus,
}
static int
ppc64DriverGetModels(char ***models)
virCPUppc64DriverGetModels(char ***models)
{
struct ppc64_map *map;
size_t i;
@ -921,5 +921,5 @@ struct cpuArchDriver cpuDriverPPC64 = {
.guestData = ppc64DriverGuestData,
.baseline = ppc64DriverBaseline,
.update = virCPUppc64Update,
.getModels = ppc64DriverGetModels,
.getModels = virCPUppc64DriverGetModels,
};

View File

@ -2668,7 +2668,7 @@ virCPUx86DataCheckFeature(const virCPUData *data,
}
static int
x86GetModels(char ***models)
virCPUx86GetModels(char ***models)
{
virCPUx86MapPtr map;
size_t i;
@ -2767,6 +2767,6 @@ struct cpuArchDriver cpuDriverX86 = {
.dataCheckFeature = virCPUx86DataCheckFeature,
.dataFormat = x86CPUDataFormat,
.dataParse = x86CPUDataParse,
.getModels = x86GetModels,
.getModels = virCPUx86GetModels,
.translate = virCPUx86Translate,
};

View File

@ -980,13 +980,13 @@ cpuDataFree;
cpuDataParse;
cpuDecode;
cpuEncode;
cpuGetModels;
cpuGuestData;
cpuNodeData;
virCPUCheckFeature;
virCPUCompare;
virCPUCompareXML;
virCPUDataCheckFeature;
virCPUGetModels;
virCPUTranslate;
virCPUUpdate;

View File

@ -4639,7 +4639,7 @@ virQEMUCapsFillDomainCPUCaps(virCapsPtr caps,
virDomainCapsCPUModelsPtr filtered = NULL;
char **models = NULL;
if (cpuGetModels(domCaps->arch, &models) >= 0) {
if (virCPUGetModels(domCaps->arch, &models) >= 0) {
filtered = virDomainCapsCPUModelsFilter(qemuCaps->cpuDefinitions,
(const char **) models);
virStringFreeList(models);

View File

@ -18476,7 +18476,7 @@ qemuConnectGetCPUModelNames(virConnectPtr conn,
return -1;
}
return cpuGetModels(arch, models);
return virCPUGetModels(arch, models);
}
static int

View File

@ -5943,7 +5943,7 @@ testConnectGetCPUModelNames(virConnectPtr conn ATTRIBUTE_UNUSED,
return -1;
}
return cpuGetModels(arch, models);
return virCPUGetModels(arch, models);
}
static int