Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
d140e259
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看板
提交
d140e259
编写于
12年前
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-nodedev.c: Switch to C99 initialization of vshCmdOptDef
上级
b2621046
无相关合并请求
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
47 addition
and
17 deletion
+47
-17
tools/virsh-nodedev.c
tools/virsh-nodedev.c
+47
-17
未找到文件。
tools/virsh-nodedev.c
浏览文件 @
d140e259
...
...
@@ -51,9 +51,12 @@ static const vshCmdInfo info_node_device_create[] = {
};
static
const
vshCmdOptDef
opts_node_device_create
[]
=
{
{
"file"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"file containing an XML description of the device"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"file"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"file containing an XML description of the device"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -97,9 +100,12 @@ static const vshCmdInfo info_node_device_destroy[] = {
};
static
const
vshCmdOptDef
opts_node_device_destroy
[]
=
{
{
"name"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"name of the device to be destroyed"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"name"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"name of the device to be destroyed"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -330,9 +336,17 @@ static const vshCmdInfo info_node_list_devices[] = {
};
static
const
vshCmdOptDef
opts_node_list_devices
[]
=
{
{
"tree"
,
VSH_OT_BOOL
,
0
,
N_
(
"list devices in a tree"
)},
{
"cap"
,
VSH_OT_STRING
,
VSH_OFLAG_NONE
,
N_
(
"capability names, separated by comma"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"tree"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"list devices in a tree"
)
},
{.
name
=
"cap"
,
.
type
=
VSH_OT_STRING
,
.
flags
=
VSH_OFLAG_NONE
,
.
help
=
N_
(
"capability names, separated by comma"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -459,8 +473,12 @@ static const vshCmdInfo info_node_device_dumpxml[] = {
static
const
vshCmdOptDef
opts_node_device_dumpxml
[]
=
{
{
"device"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"device key"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"device"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"device key"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -500,8 +518,12 @@ static const vshCmdInfo info_node_device_detach[] = {
static
const
vshCmdOptDef
opts_node_device_detach
[]
=
{
{
"device"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"device key"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"device"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"device key"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -541,8 +563,12 @@ static const vshCmdInfo info_node_device_reattach[] = {
static
const
vshCmdOptDef
opts_node_device_reattach
[]
=
{
{
"device"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"device key"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"device"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"device key"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -580,8 +606,12 @@ static const vshCmdInfo info_node_device_reset[] = {
static
const
vshCmdOptDef
opts_node_device_reset
[]
=
{
{
"device"
,
VSH_OT_DATA
,
VSH_OFLAG_REQ
,
N_
(
"device key"
)},
{
NULL
,
0
,
0
,
NULL
}
{.
name
=
"device"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
.
help
=
N_
(
"device key"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部