virsh-nodedev.c: Switch to c99 initialization of vshCmdInfo

This commit is contained in:
Michal Privoznik 2013-02-07 16:25:10 +01:00
parent a8236b0656
commit f036f38686

View File

@ -42,12 +42,16 @@
* "nodedev-create" command * "nodedev-create" command
*/ */
static const vshCmdInfo info_node_device_create[] = { static const vshCmdInfo info_node_device_create[] = {
{"help", N_("create a device defined " {.name = "help",
"by an XML file on the node")}, .data = N_("create a device defined "
{"desc", N_("Create a device on the node. Note that this " "by an XML file on the node")
},
{.name = "desc",
.data = N_("Create a device on the node. Note that this "
"command creates devices on the physical host " "command creates devices on the physical host "
"that can then be assigned to a virtual machine.")}, "that can then be assigned to a virtual machine.")
{NULL, NULL} },
{.name = NULL}
}; };
static const vshCmdOptDef opts_node_device_create[] = { static const vshCmdOptDef opts_node_device_create[] = {
@ -93,10 +97,14 @@ cmdNodeDeviceCreate(vshControl *ctl, const vshCmd *cmd)
* "nodedev-destroy" command * "nodedev-destroy" command
*/ */
static const vshCmdInfo info_node_device_destroy[] = { static const vshCmdInfo info_node_device_destroy[] = {
{"help", N_("destroy (stop) a device on the node")}, {.name = "help",
{"desc", N_("Destroy a device on the node. Note that this " .data = N_("destroy (stop) a device on the node")
"command destroys devices on the physical host")}, },
{NULL, NULL} {.name = "desc",
.data = N_("Destroy a device on the node. Note that this "
"command destroys devices on the physical host")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_node_device_destroy[] = { static const vshCmdOptDef opts_node_device_destroy[] = {
@ -361,9 +369,13 @@ cleanup:
* "nodedev-list" command * "nodedev-list" command
*/ */
static const vshCmdInfo info_node_list_devices[] = { static const vshCmdInfo info_node_list_devices[] = {
{"help", N_("enumerate devices on this host")}, {.name = "help",
{"desc", ""}, .data = N_("enumerate devices on this host")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_node_list_devices[] = { static const vshCmdOptDef opts_node_list_devices[] = {
@ -497,9 +509,13 @@ cleanup:
* "nodedev-dumpxml" command * "nodedev-dumpxml" command
*/ */
static const vshCmdInfo info_node_device_dumpxml[] = { static const vshCmdInfo info_node_device_dumpxml[] = {
{"help", N_("node device details in XML")}, {.name = "help",
{"desc", N_("Output the node device details as an XML dump to stdout.")}, .data = N_("node device details in XML")
{NULL, NULL} },
{.name = "desc",
.data = N_("Output the node device details as an XML dump to stdout.")
},
{.name = NULL}
}; };
@ -565,9 +581,13 @@ cleanup:
* "nodedev-detach" command * "nodedev-detach" command
*/ */
static const vshCmdInfo info_node_device_detach[] = { static const vshCmdInfo info_node_device_detach[] = {
{"help", N_("detach node device from its device driver")}, {.name = "help",
{"desc", N_("Detach node device from its device driver before assigning to a domain.")}, .data = N_("detach node device from its device driver")
{NULL, NULL} },
{.name = "desc",
.data = N_("Detach node device from its device driver before assigning to a domain.")
},
{.name = NULL}
}; };
@ -612,9 +632,13 @@ cmdNodeDeviceDetach(vshControl *ctl, const vshCmd *cmd)
* "nodedev-reattach" command * "nodedev-reattach" command
*/ */
static const vshCmdInfo info_node_device_reattach[] = { static const vshCmdInfo info_node_device_reattach[] = {
{"help", N_("reattach node device to its device driver")}, {.name = "help",
{"desc", N_("Reattach node device to its device driver once released by the domain.")}, .data = N_("reattach node device to its device driver")
{NULL, NULL} },
{.name = "desc",
.data = N_("Reattach node device to its device driver once released by the domain.")
},
{.name = NULL}
}; };
@ -657,9 +681,13 @@ cmdNodeDeviceReAttach(vshControl *ctl, const vshCmd *cmd)
* "nodedev-reset" command * "nodedev-reset" command
*/ */
static const vshCmdInfo info_node_device_reset[] = { static const vshCmdInfo info_node_device_reset[] = {
{"help", N_("reset node device")}, {.name = "help",
{"desc", N_("Reset node device before or after assigning to a domain.")}, .data = N_("reset node device")
{NULL, NULL} },
{.name = "desc",
.data = N_("Reset node device before or after assigning to a domain.")
},
{.name = NULL}
}; };