Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
825f85ac
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看板
提交
825f85ac
编写于
5月 30, 2011
作者:
M
Matthias Bolte
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use common parameter order for remote(De)SerializeTypedParameters
We commonly use "value, length" order, let's stick to this.
上级
d6caacd1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
40 deletion
+40
-40
daemon/remote.c
daemon/remote.c
+20
-20
src/remote/remote_driver.c
src/remote/remote_driver.c
+20
-20
未找到文件。
daemon/remote.c
浏览文件 @
825f85ac
...
...
@@ -528,8 +528,8 @@ cleanup:
static
int
remoteSerializeTypedParameters
(
virTypedParameterPtr
params
,
int
nparams
,
u_int
*
ret_params_len
,
remote_typed_param
**
ret_params_val
)
remote_typed_param
**
ret_params_val
,
u_int
*
ret_params_len
)
{
int
i
;
int
rv
=
-
1
;
...
...
@@ -590,8 +590,8 @@ cleanup:
/* Helper to deserialize typed parameters. */
static
virTypedParameterPtr
remoteDeserializeTypedParameters
(
u_int
args_params_len
,
remote_typed_param
*
args_params_val
,
remoteDeserializeTypedParameters
(
remote_typed_param
*
args_params_val
,
u_int
args_params_len
,
int
limit
,
int
*
nparams
)
{
...
...
@@ -694,8 +694,8 @@ remoteDispatchDomainGetSchedulerParameters(struct qemud_server *server ATTRIBUTE
goto
cleanup
;
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
ret
->
params
.
params_
len
,
&
ret
->
params
.
params_
val
)
<
0
)
&
ret
->
params
.
params_
val
,
&
ret
->
params
.
params_
len
)
<
0
)
goto
cleanup
;
rv
=
0
;
...
...
@@ -747,8 +747,8 @@ remoteDispatchDomainGetSchedulerParametersFlags(struct qemud_server *server ATTR
goto
cleanup
;
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
ret
->
params
.
params_
len
,
&
ret
->
params
.
params_
val
)
<
0
)
&
ret
->
params
.
params_
val
,
&
ret
->
params
.
params_
len
)
<
0
)
goto
cleanup
;
rv
=
0
;
...
...
@@ -787,8 +787,8 @@ remoteDispatchDomainSetSchedulerParameters(struct qemud_server *server ATTRIBUTE
nparams
=
args
->
params
.
params_len
;
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
len
,
args
->
params
.
params_
val
,
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
val
,
args
->
params
.
params_
len
,
REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX
,
&
nparams
))
==
NULL
)
goto
cleanup
;
...
...
@@ -829,8 +829,8 @@ remoteDispatchDomainSetSchedulerParametersFlags(struct qemud_server *server ATTR
goto
cleanup
;
}
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
len
,
args
->
params
.
params_
val
,
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
val
,
args
->
params
.
params_
len
,
REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX
,
&
nparams
))
==
NULL
)
goto
cleanup
;
...
...
@@ -1369,8 +1369,8 @@ remoteDispatchDomainSetMemoryParameters(struct qemud_server *server
flags
=
args
->
flags
;
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
len
,
args
->
params
.
params_
val
,
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
val
,
args
->
params
.
params_
len
,
REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX
,
&
nparams
))
==
NULL
)
goto
cleanup
;
...
...
@@ -1443,8 +1443,8 @@ remoteDispatchDomainGetMemoryParameters(struct qemud_server *server
}
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
ret
->
params
.
params_
len
,
&
ret
->
params
.
params_
val
)
<
0
)
&
ret
->
params
.
params_
val
,
&
ret
->
params
.
params_
len
)
<
0
)
goto
cleanup
;
success:
...
...
@@ -1484,8 +1484,8 @@ remoteDispatchDomainSetBlkioParameters(struct qemud_server *server
flags
=
args
->
flags
;
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
len
,
args
->
params
.
params_
val
,
if
((
params
=
remoteDeserializeTypedParameters
(
args
->
params
.
params_
val
,
args
->
params
.
params_
len
,
REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX
,
&
nparams
))
==
NULL
)
goto
cleanup
;
...
...
@@ -1558,8 +1558,8 @@ remoteDispatchDomainGetBlkioParameters(struct qemud_server *server
}
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
ret
->
params
.
params_
len
,
&
ret
->
params
.
params_
val
)
<
0
)
&
ret
->
params
.
params_
val
,
&
ret
->
params
.
params_
len
)
<
0
)
goto
cleanup
;
success:
...
...
src/remote/remote_driver.c
浏览文件 @
825f85ac
...
...
@@ -1783,8 +1783,8 @@ done:
static
int
remoteSerializeTypedParameters
(
virTypedParameterPtr
params
,
int
nparams
,
u_int
*
args_params_len
,
remote_typed_param
**
args_params_val
)
remote_typed_param
**
args_params_val
,
u_int
*
args_params_len
)
{
int
i
;
int
rv
=
-
1
;
...
...
@@ -1845,8 +1845,8 @@ cleanup:
/* Helper to deserialize typed parameters. */
static
int
remoteDeserializeTypedParameters
(
u_int
ret_params_len
,
remote_typed_param
*
ret_params_val
,
remoteDeserializeTypedParameters
(
remote_typed_param
*
ret_params_val
,
u_int
ret_params_len
,
int
limit
,
virTypedParameterPtr
params
,
int
*
nparams
)
...
...
@@ -1928,8 +1928,8 @@ remoteDomainSetMemoryParameters (virDomainPtr domain,
args
.
flags
=
flags
;
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
args
.
params
.
params_
len
,
&
args
.
params
.
params_
val
)
<
0
)
{
&
args
.
params
.
params_
val
,
&
args
.
params
.
params_
len
)
<
0
)
{
xdr_free
((
xdrproc_t
)
xdr_remote_domain_set_memory_parameters_args
,
(
char
*
)
&
args
);
goto
done
;
...
...
@@ -1978,8 +1978,8 @@ remoteDomainGetMemoryParameters (virDomainPtr domain,
goto
cleanup
;
}
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
len
,
ret
.
params
.
params_
val
,
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
val
,
ret
.
params
.
params_
len
,
REMOTE_DOMAIN_MEMORY_PARAMETERS_MAX
,
params
,
nparams
)
<
0
)
...
...
@@ -2012,8 +2012,8 @@ remoteDomainSetBlkioParameters (virDomainPtr domain,
args
.
flags
=
flags
;
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
args
.
params
.
params_
len
,
&
args
.
params
.
params_
val
)
<
0
)
{
&
args
.
params
.
params_
val
,
&
args
.
params
.
params_
len
)
<
0
)
{
xdr_free
((
xdrproc_t
)
xdr_remote_domain_set_blkio_parameters_args
,
(
char
*
)
&
args
);
goto
done
;
...
...
@@ -2062,8 +2062,8 @@ remoteDomainGetBlkioParameters (virDomainPtr domain,
goto
cleanup
;
}
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
len
,
ret
.
params
.
params_
val
,
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
val
,
ret
.
params
.
params_
len
,
REMOTE_DOMAIN_BLKIO_PARAMETERS_MAX
,
params
,
nparams
)
<
0
)
...
...
@@ -2450,8 +2450,8 @@ remoteDomainGetSchedulerParameters (virDomainPtr domain,
(
xdrproc_t
)
xdr_remote_domain_get_scheduler_parameters_ret
,
(
char
*
)
&
ret
)
==
-
1
)
goto
done
;
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
len
,
ret
.
params
.
params_
val
,
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
val
,
ret
.
params
.
params_
len
,
REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX
,
params
,
nparams
)
<
0
)
...
...
@@ -2489,8 +2489,8 @@ remoteDomainGetSchedulerParametersFlags (virDomainPtr domain,
(
xdrproc_t
)
xdr_remote_domain_get_scheduler_parameters_flags_ret
,
(
char
*
)
&
ret
)
==
-
1
)
goto
done
;
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
len
,
ret
.
params
.
params_
val
,
if
(
remoteDeserializeTypedParameters
(
ret
.
params
.
params_
val
,
ret
.
params
.
params_
len
,
REMOTE_DOMAIN_SCHEDULER_PARAMETERS_MAX
,
params
,
nparams
)
<
0
)
...
...
@@ -2518,8 +2518,8 @@ remoteDomainSetSchedulerParameters (virDomainPtr domain,
make_nonnull_domain
(
&
args
.
dom
,
domain
);
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
args
.
params
.
params_
len
,
&
args
.
params
.
params_
val
)
<
0
)
{
&
args
.
params
.
params_
val
,
&
args
.
params
.
params_
len
)
<
0
)
{
xdr_free
((
xdrproc_t
)
xdr_remote_domain_set_scheduler_parameters_args
,
(
char
*
)
&
args
);
goto
done
;
...
...
@@ -2554,8 +2554,8 @@ remoteDomainSetSchedulerParametersFlags(virDomainPtr domain,
args
.
flags
=
flags
;
if
(
remoteSerializeTypedParameters
(
params
,
nparams
,
&
args
.
params
.
params_
len
,
&
args
.
params
.
params_
val
)
<
0
)
{
&
args
.
params
.
params_
val
,
&
args
.
params
.
params_
len
)
<
0
)
{
xdr_free
((
xdrproc_t
)
xdr_remote_domain_set_scheduler_parameters_flags_args
,
(
char
*
)
&
args
);
goto
done
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录