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

This commit is contained in:
Michal Privoznik 2013-02-07 16:25:10 +01:00
parent 5986665f55
commit d84608120c

View File

@ -78,10 +78,13 @@ vshCommandOptPoolBy(vshControl *ctl, const vshCmd *cmd, const char *optname,
* "pool-autostart" command * "pool-autostart" command
*/ */
static const vshCmdInfo info_pool_autostart[] = { static const vshCmdInfo info_pool_autostart[] = {
{"help", N_("autostart a pool")}, {.name = "help",
{"desc", .data = N_("autostart a pool")
N_("Configure a pool to be automatically started at boot.")}, },
{NULL, NULL} {.name = "desc",
.data = N_("Configure a pool to be automatically started at boot.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_autostart[] = { static const vshCmdOptDef opts_pool_autostart[] = {
@ -132,9 +135,13 @@ cmdPoolAutostart(vshControl *ctl, const vshCmd *cmd)
* "pool-create" command * "pool-create" command
*/ */
static const vshCmdInfo info_pool_create[] = { static const vshCmdInfo info_pool_create[] = {
{"help", N_("create a pool from an XML file")}, {.name = "help",
{"desc", N_("Create a pool.")}, .data = N_("create a pool from an XML file")
{NULL, NULL} },
{.name = "desc",
.data = N_("Create a pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_create[] = { static const vshCmdOptDef opts_pool_create[] = {
@ -293,9 +300,13 @@ cleanup:
* "pool-create-as" command * "pool-create-as" command
*/ */
static const vshCmdInfo info_pool_create_as[] = { static const vshCmdInfo info_pool_create_as[] = {
{"help", N_("create a pool from a set of args")}, {.name = "help",
{"desc", N_("Create a pool.")}, .data = N_("create a pool from a set of args")
{NULL, NULL} },
{.name = "desc",
.data = N_("Create a pool.")
},
{.name = NULL}
}; };
static bool static bool
@ -331,9 +342,13 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd)
* "pool-define" command * "pool-define" command
*/ */
static const vshCmdInfo info_pool_define[] = { static const vshCmdInfo info_pool_define[] = {
{"help", N_("define (but don't start) a pool from an XML file")}, {.name = "help",
{"desc", N_("Define a pool.")}, .data = N_("define (but don't start) a pool from an XML file")
{NULL, NULL} },
{.name = "desc",
.data = N_("Define a pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_define[] = { static const vshCmdOptDef opts_pool_define[] = {
@ -377,9 +392,13 @@ cmdPoolDefine(vshControl *ctl, const vshCmd *cmd)
* "pool-define-as" command * "pool-define-as" command
*/ */
static const vshCmdInfo info_pool_define_as[] = { static const vshCmdInfo info_pool_define_as[] = {
{"help", N_("define a pool from a set of args")}, {.name = "help",
{"desc", N_("Define a pool.")}, .data = N_("define a pool from a set of args")
{NULL, NULL} },
{.name = "desc",
.data = N_("Define a pool.")
},
{.name = NULL}
}; };
static bool static bool
@ -415,9 +434,13 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd)
* "pool-build" command * "pool-build" command
*/ */
static const vshCmdInfo info_pool_build[] = { static const vshCmdInfo info_pool_build[] = {
{"help", N_("build a pool")}, {.name = "help",
{"desc", N_("Build a given pool.")}, .data = N_("build a pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Build a given pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_build[] = { static const vshCmdOptDef opts_pool_build[] = {
@ -474,10 +497,13 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd)
* "pool-destroy" command * "pool-destroy" command
*/ */
static const vshCmdInfo info_pool_destroy[] = { static const vshCmdInfo info_pool_destroy[] = {
{"help", N_("destroy (stop) a pool")}, {.name = "help",
{"desc", .data = N_("destroy (stop) a pool")
N_("Forcefully stop a given pool. Raw data in the pool is untouched")}, },
{NULL, NULL} {.name = "desc",
.data = N_("Forcefully stop a given pool. Raw data in the pool is untouched")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_destroy[] = { static const vshCmdOptDef opts_pool_destroy[] = {
@ -514,9 +540,13 @@ cmdPoolDestroy(vshControl *ctl, const vshCmd *cmd)
* "pool-delete" command * "pool-delete" command
*/ */
static const vshCmdInfo info_pool_delete[] = { static const vshCmdInfo info_pool_delete[] = {
{"help", N_("delete a pool")}, {.name = "help",
{"desc", N_("Delete a given pool.")}, .data = N_("delete a pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Delete a given pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_delete[] = { static const vshCmdOptDef opts_pool_delete[] = {
@ -553,9 +583,13 @@ cmdPoolDelete(vshControl *ctl, const vshCmd *cmd)
* "pool-refresh" command * "pool-refresh" command
*/ */
static const vshCmdInfo info_pool_refresh[] = { static const vshCmdInfo info_pool_refresh[] = {
{"help", N_("refresh a pool")}, {.name = "help",
{"desc", N_("Refresh a given pool.")}, .data = N_("refresh a pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Refresh a given pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_refresh[] = { static const vshCmdOptDef opts_pool_refresh[] = {
@ -592,9 +626,13 @@ cmdPoolRefresh(vshControl *ctl, const vshCmd *cmd)
* "pool-dumpxml" command * "pool-dumpxml" command
*/ */
static const vshCmdInfo info_pool_dumpxml[] = { static const vshCmdInfo info_pool_dumpxml[] = {
{"help", N_("pool information in XML")}, {.name = "help",
{"desc", N_("Output the pool information as an XML dump to stdout.")}, .data = N_("pool information in XML")
{NULL, NULL} },
{.name = "desc",
.data = N_("Output the pool information as an XML dump to stdout.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_dumpxml[] = { static const vshCmdOptDef opts_pool_dumpxml[] = {
@ -866,9 +904,13 @@ cleanup:
* "pool-list" command * "pool-list" command
*/ */
static const vshCmdInfo info_pool_list[] = { static const vshCmdInfo info_pool_list[] = {
{"help", N_("list pools")}, {.name = "help",
{"desc", N_("Returns list of pools.")}, .data = N_("list pools")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns list of pools.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_list[] = { static const vshCmdOptDef opts_pool_list[] = {
@ -1316,9 +1358,13 @@ cleanup:
* "find-storage-pool-sources-as" command * "find-storage-pool-sources-as" command
*/ */
static const vshCmdInfo info_find_storage_pool_sources_as[] = { static const vshCmdInfo info_find_storage_pool_sources_as[] = {
{"help", N_("find potential storage pool sources")}, {.name = "help",
{"desc", N_("Returns XML <sources> document.")}, .data = N_("find potential storage pool sources")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns XML <sources> document.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_find_storage_pool_sources_as[] = { static const vshCmdOptDef opts_find_storage_pool_sources_as[] = {
@ -1401,9 +1447,13 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "find-storage-pool-sources" command * "find-storage-pool-sources" command
*/ */
static const vshCmdInfo info_find_storage_pool_sources[] = { static const vshCmdInfo info_find_storage_pool_sources[] = {
{"help", N_("discover potential storage pool sources")}, {.name = "help",
{"desc", N_("Returns XML <sources> document.")}, .data = N_("discover potential storage pool sources")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns XML <sources> document.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_find_storage_pool_sources[] = { static const vshCmdOptDef opts_find_storage_pool_sources[] = {
@ -1452,9 +1502,13 @@ cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "pool-info" command * "pool-info" command
*/ */
static const vshCmdInfo info_pool_info[] = { static const vshCmdInfo info_pool_info[] = {
{"help", N_("storage pool information")}, {.name = "help",
{"desc", N_("Returns basic information about the storage pool.")}, .data = N_("storage pool information")
{NULL, NULL} },
{.name = "desc",
.data = N_("Returns basic information about the storage pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_info[] = { static const vshCmdOptDef opts_pool_info[] = {
@ -1548,9 +1602,13 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
* "pool-name" command * "pool-name" command
*/ */
static const vshCmdInfo info_pool_name[] = { static const vshCmdInfo info_pool_name[] = {
{"help", N_("convert a pool UUID to pool name")}, {.name = "help",
{"desc", ""}, .data = N_("convert a pool UUID to pool name")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_name[] = { static const vshCmdOptDef opts_pool_name[] = {
@ -1580,9 +1638,13 @@ cmdPoolName(vshControl *ctl, const vshCmd *cmd)
* "pool-start" command * "pool-start" command
*/ */
static const vshCmdInfo info_pool_start[] = { static const vshCmdInfo info_pool_start[] = {
{"help", N_("start a (previously defined) inactive pool")}, {.name = "help",
{"desc", N_("Start a pool.")}, .data = N_("start a (previously defined) inactive pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Start a pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_start[] = { static const vshCmdOptDef opts_pool_start[] = {
@ -1619,9 +1681,13 @@ cmdPoolStart(vshControl *ctl, const vshCmd *cmd)
* "pool-undefine" command * "pool-undefine" command
*/ */
static const vshCmdInfo info_pool_undefine[] = { static const vshCmdInfo info_pool_undefine[] = {
{"help", N_("undefine an inactive pool")}, {.name = "help",
{"desc", N_("Undefine the configuration for an inactive pool.")}, .data = N_("undefine an inactive pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Undefine the configuration for an inactive pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_undefine[] = { static const vshCmdOptDef opts_pool_undefine[] = {
@ -1658,9 +1724,13 @@ cmdPoolUndefine(vshControl *ctl, const vshCmd *cmd)
* "pool-uuid" command * "pool-uuid" command
*/ */
static const vshCmdInfo info_pool_uuid[] = { static const vshCmdInfo info_pool_uuid[] = {
{"help", N_("convert a pool name to pool UUID")}, {.name = "help",
{"desc", ""}, .data = N_("convert a pool name to pool UUID")
{NULL, NULL} },
{.name = "desc",
.data = ""
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_uuid[] = { static const vshCmdOptDef opts_pool_uuid[] = {
@ -1695,9 +1765,13 @@ cmdPoolUuid(vshControl *ctl, const vshCmd *cmd)
* "pool-edit" command * "pool-edit" command
*/ */
static const vshCmdInfo info_pool_edit[] = { static const vshCmdInfo info_pool_edit[] = {
{"help", N_("edit XML configuration for a storage pool")}, {.name = "help",
{"desc", N_("Edit the XML configuration for a storage pool.")}, .data = N_("edit XML configuration for a storage pool")
{NULL, NULL} },
{.name = "desc",
.data = N_("Edit the XML configuration for a storage pool.")
},
{.name = NULL}
}; };
static const vshCmdOptDef opts_pool_edit[] = { static const vshCmdOptDef opts_pool_edit[] = {