The new name is virCPUDataParse.
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
/**
- * cpuDataParse:
+ * virCPUDataParse:
*
* @xmlStr: XML string produced by cpuDataFormat
*
* Returns internal CPU data structure parsed from the XML or NULL on error.
*/
virCPUDataPtr
-cpuDataParse(const char *xmlStr)
+virCPUDataParse(const char *xmlStr)
{
struct cpuArchDriver *driver;
xmlDocPtr xml = NULL;
(*cpuArchDataFormat)(const virCPUData *data);
typedef virCPUDataPtr
-(*cpuArchDataParse) (xmlXPathContextPtr ctxt);
+(*virCPUArchDataParse)(xmlXPathContextPtr ctxt);
typedef int
(*virCPUArchGetModels)(char ***models);
virCPUArchCheckFeature checkFeature;
virCPUArchDataCheckFeature dataCheckFeature;
cpuArchDataFormat dataFormat;
- cpuArchDataParse dataParse;
+ virCPUArchDataParse dataParse;
virCPUArchGetModels getModels;
virCPUArchTranslate translate;
};
ATTRIBUTE_NONNULL(2);
-/* cpuDataFormat and cpuDataParse are implemented for unit tests only and
+/* cpuDataFormat and virCPUDataParse are implemented for unit tests only and
* have no real-life usage
*/
char *cpuDataFormat(const virCPUData *data)
ATTRIBUTE_NONNULL(1);
-virCPUDataPtr cpuDataParse(const char *xmlStr)
+virCPUDataPtr virCPUDataParse(const char *xmlStr)
ATTRIBUTE_NONNULL(1);
#endif /* __VIR_CPU_H__ */
static virCPUDataPtr
-x86CPUDataParse(xmlXPathContextPtr ctxt)
+virCPUx86DataParse(xmlXPathContextPtr ctxt)
{
xmlNodePtr *nodes = NULL;
virCPUDataPtr cpuData = NULL;
.checkFeature = virCPUx86CheckFeature,
.dataCheckFeature = virCPUx86DataCheckFeature,
.dataFormat = x86CPUDataFormat,
- .dataParse = x86CPUDataParse,
+ .dataParse = virCPUx86DataParse,
.getModels = virCPUx86GetModels,
.translate = virCPUx86Translate,
};
cpuBaselineXML;
cpuDataFormat;
cpuDataFree;
-cpuDataParse;
cpuDecode;
cpuEncode;
cpuGuestData;
virCPUCompare;
virCPUCompareXML;
virCPUDataCheckFeature;
+virCPUDataParse;
virCPUGetModels;
virCPUTranslate;
virCPUUpdate;
goto cleanup;
if (virTestLoadFile(hostFile, &host) < 0 ||
- !(hostData = cpuDataParse(host)))
+ !(hostData = virCPUDataParse(host)))
goto cleanup;
if (VIR_ALLOC(cpu) < 0)