Commit c4ec9be0 authored by Damien Fouilleul's avatar Damien Fouilleul

- libvlc.h: use C99 designated initializers to partially initialize help...

- libvlc.h: use C99 designated initializers to partially initialize help module config (this disable a bunch of warnings, and non-initialized members are automatically set to nil)
parent f7be5ba3
...@@ -2125,29 +2125,66 @@ vlc_module_end(); ...@@ -2125,29 +2125,66 @@ vlc_module_end();
static module_config_t p_help_config[] = static module_config_t p_help_config[] =
{ {
{ CONFIG_ITEM_BOOL, NULL, "help", 'h', {
N_("print help for VLC (can be combined with --advanced)") }, .i_type = CONFIG_ITEM_BOOL,
{ CONFIG_ITEM_BOOL, NULL, "longhelp", 'H', .psz_name = "help",
N_("print help for VLC and all its modules (can be combined with --advanced)") }, .i_short = 'h',
{ CONFIG_ITEM_BOOL, NULL, "advanced", '\0', .psz_text = N_("print help for VLC (can be combined with --advanced)")
N_("print help for the advanced options") }, },
{ CONFIG_ITEM_BOOL, NULL, "help-verbose", '\0', {
N_("ask for extra verbosity when displaying help") }, .i_type = CONFIG_ITEM_BOOL,
{ CONFIG_ITEM_BOOL, NULL, "list", 'l', .psz_name = "longhelp",
N_("print a list of available modules") }, .i_short = 'H',
{ CONFIG_ITEM_STRING, NULL, "module", 'p', .psz_text = N_("print help for VLC and all its modules (can be combined with --advanced)")
N_("print help on a specific module (can be combined with --advanced)") }, },
{ CONFIG_ITEM_BOOL, NULL, "save-config", '\0', {
N_("save the current command line options in the config") }, .i_type = CONFIG_ITEM_BOOL,
{ CONFIG_ITEM_BOOL, NULL, "reset-config", '\0', .psz_name = "advanced",
N_("reset the current config to the default values") }, .psz_text = N_("print help for the advanced options")
{ CONFIG_ITEM_STRING, NULL, "config", '\0', },
N_("use alternate config file") }, {
{ CONFIG_ITEM_BOOL, NULL, "reset-plugins-cache", '\0', .i_type = CONFIG_ITEM_BOOL,
N_("resets the current plugins cache") }, .psz_name = "help-verbose",
{ CONFIG_ITEM_BOOL, NULL, "version", '\0', .psz_text = N_("ask for extra verbosity when displaying help")
N_("print version information") }, },
{ CONFIG_HINT_END, NULL, NULL, '\0', NULL } {
.i_type = CONFIG_ITEM_BOOL,
.psz_name = "list",
.i_short = 'l',
.psz_text = N_("print a list of available modules")
},
{
.i_type = CONFIG_ITEM_STRING,
.psz_name = "module",
.i_short = 'p',
.psz_text = N_("print help on a specific module (can be combined with --advanced)")
},
{
.i_type = CONFIG_ITEM_BOOL,
.psz_name = "save-config",
.psz_text = N_("save the current command line options in the config")
},
{
.i_type = CONFIG_ITEM_BOOL,
.psz_name = "reset-config",
.psz_text = N_("reset the current config to the default values")
},
{
.i_type = CONFIG_ITEM_STRING,
.psz_name = "config",
.psz_text = N_("use alternate config file")
},
{
.i_type = CONFIG_ITEM_BOOL,
.psz_name = "reset-plugins-cache",
.psz_text = N_("resets the current plugins cache")
},
{
.i_type = CONFIG_ITEM_BOOL,
.psz_name = "version",
.psz_text = N_("print version information")
},
{ .i_type = CONFIG_HINT_END }
}; };
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment