Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
53a5986a
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
53a5986a
编写于
11月 04, 2016
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cpu: Rename cpuDataFormat
The new name is virCPUDataFormat. Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
be57e689
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
11 deletion
+11
-11
src/cpu/cpu.c
src/cpu/cpu.c
+3
-3
src/cpu/cpu.h
src/cpu/cpu.h
+4
-4
src/cpu/cpu_x86.c
src/cpu/cpu_x86.c
+2
-2
src/libvirt_private.syms
src/libvirt_private.syms
+1
-1
tests/qemumonitorjsontest.c
tests/qemumonitorjsontest.c
+1
-1
未找到文件。
src/cpu/cpu.c
浏览文件 @
53a5986a
...
...
@@ -734,7 +734,7 @@ virCPUDataCheckFeature(const virCPUData *data,
/**
*
cpu
DataFormat:
*
virCPU
DataFormat:
*
* @data: internal CPU representation
*
...
...
@@ -743,7 +743,7 @@ virCPUDataCheckFeature(const virCPUData *data,
* Returns string representation of the XML describing @data or NULL on error.
*/
char
*
cpu
DataFormat
(
const
virCPUData
*
data
)
virCPU
DataFormat
(
const
virCPUData
*
data
)
{
struct
cpuArchDriver
*
driver
;
...
...
@@ -766,7 +766,7 @@ cpuDataFormat(const virCPUData *data)
/**
* virCPUDataParse:
*
* @xmlStr: XML string produced by
cpu
DataFormat
* @xmlStr: XML string produced by
virCPU
DataFormat
*
* Parses XML representation of virCPUData structure for test purposes.
*
...
...
src/cpu/cpu.h
浏览文件 @
53a5986a
...
...
@@ -99,7 +99,7 @@ typedef int
const
char
*
feature
);
typedef
char
*
(
*
cpu
ArchDataFormat
)(
const
virCPUData
*
data
);
(
*
virCPU
ArchDataFormat
)(
const
virCPUData
*
data
);
typedef
virCPUDataPtr
(
*
virCPUArchDataParse
)(
xmlXPathContextPtr
ctxt
);
...
...
@@ -126,7 +126,7 @@ struct cpuArchDriver {
virCPUArchUpdate
update
;
virCPUArchCheckFeature
checkFeature
;
virCPUArchDataCheckFeature
dataCheckFeature
;
cpuArchDataFormat
dataFormat
;
virCPUArchDataFormat
dataFormat
;
virCPUArchDataParse
dataParse
;
virCPUArchGetModels
getModels
;
virCPUArchTranslate
translate
;
...
...
@@ -230,10 +230,10 @@ virCPUTranslate(virArch arch,
ATTRIBUTE_NONNULL
(
2
);
/*
cpu
DataFormat and virCPUDataParse are implemented for unit tests only and
/*
virCPU
DataFormat and virCPUDataParse are implemented for unit tests only and
* have no real-life usage
*/
char
*
cpu
DataFormat
(
const
virCPUData
*
data
)
char
*
virCPU
DataFormat
(
const
virCPUData
*
data
)
ATTRIBUTE_NONNULL
(
1
);
virCPUDataPtr
virCPUDataParse
(
const
char
*
xmlStr
)
ATTRIBUTE_NONNULL
(
1
);
...
...
src/cpu/cpu_x86.c
浏览文件 @
53a5986a
...
...
@@ -1412,7 +1412,7 @@ virCPUx86GetMap(void)
static
char
*
x86CPU
DataFormat
(
const
virCPUData
*
data
)
virCPUx86
DataFormat
(
const
virCPUData
*
data
)
{
virCPUx86DataIterator
iter
=
virCPUx86DataIteratorInit
(
&
data
->
data
.
x86
);
virCPUx86CPUID
*
cpuid
;
...
...
@@ -2765,7 +2765,7 @@ struct cpuArchDriver cpuDriverX86 = {
.
update
=
virCPUx86Update
,
.
checkFeature
=
virCPUx86CheckFeature
,
.
dataCheckFeature
=
virCPUx86DataCheckFeature
,
.
dataFormat
=
x86CPU
DataFormat
,
.
dataFormat
=
virCPUx86
DataFormat
,
.
dataParse
=
virCPUx86DataParse
,
.
getModels
=
virCPUx86GetModels
,
.
translate
=
virCPUx86Translate
,
...
...
src/libvirt_private.syms
浏览文件 @
53a5986a
...
...
@@ -975,7 +975,6 @@ virSecretObjSetValueSize;
# cpu/cpu.h
cpuBaseline;
cpuBaselineXML;
cpuDataFormat;
cpuDataFree;
cpuDecode;
cpuEncode;
...
...
@@ -985,6 +984,7 @@ virCPUCheckFeature;
virCPUCompare;
virCPUCompareXML;
virCPUDataCheckFeature;
virCPUDataFormat;
virCPUDataParse;
virCPUGetModels;
virCPUTranslate;
...
...
tests/qemumonitorjsontest.c
浏览文件 @
53a5986a
...
...
@@ -2329,7 +2329,7 @@ testQemuMonitorJSONGetCPUData(const void *opaque)
&
cpuData
)
<
0
)
goto
cleanup
;
if
(
!
(
actual
=
cpu
DataFormat
(
cpuData
)))
if
(
!
(
actual
=
virCPU
DataFormat
(
cpuData
)))
goto
cleanup
;
if
(
virTestCompareToFile
(
actual
,
dataFile
)
<
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录