Changeset c4ec9be036d1369828b2d0ab470199065d087464

Show
Ignore:
Timestamp:
10/17/06 21:44:49 (2 years ago)
Author:
Damien Fouilleul <damienf@videolan.org>
git-committer:
Damien Fouilleul <damienf@videolan.org> 1161114289 +0000
git-parent:

[f7be5ba378b985ceddc6e72ec15b85f4b605e7de]

git-author:
Damien Fouilleul <damienf@videolan.org> 1161114289 +0000
Message:

- 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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/libvlc.h

    r5e44df1 rc4ec9be  
    21262126static module_config_t p_help_config[] = 
    21272127{ 
    2128     { CONFIG_ITEM_BOOL, NULL, "help", 'h', 
    2129       N_("print help for VLC (can be combined with --advanced)") }, 
    2130     { CONFIG_ITEM_BOOL, NULL, "longhelp", 'H', 
    2131       N_("print help for VLC and all its modules (can be combined with --advanced)") }, 
    2132     { CONFIG_ITEM_BOOL, NULL, "advanced", '\0', 
    2133       N_("print help for the advanced options") }, 
    2134     { CONFIG_ITEM_BOOL, NULL, "help-verbose", '\0', 
    2135       N_("ask for extra verbosity when displaying help") }, 
    2136     { CONFIG_ITEM_BOOL, NULL, "list", 'l', 
    2137       N_("print a list of available modules") }, 
    2138     { CONFIG_ITEM_STRING, NULL, "module", 'p', 
    2139       N_("print help on a specific module (can be combined with --advanced)") }, 
    2140     { CONFIG_ITEM_BOOL, NULL, "save-config", '\0', 
    2141       N_("save the current command line options in the config") }, 
    2142     { CONFIG_ITEM_BOOL, NULL, "reset-config", '\0', 
    2143       N_("reset the current config to the default values") }, 
    2144     { CONFIG_ITEM_STRING, NULL, "config", '\0', 
    2145       N_("use alternate config file") }, 
    2146     { CONFIG_ITEM_BOOL, NULL, "reset-plugins-cache", '\0', 
    2147       N_("resets the current plugins cache") }, 
    2148     { CONFIG_ITEM_BOOL, NULL, "version", '\0', 
    2149       N_("print version information") }, 
    2150     { CONFIG_HINT_END, NULL, NULL, '\0', NULL } 
     2128    {  
     2129        .i_type   = CONFIG_ITEM_BOOL, 
     2130        .psz_name = "help", 
     2131        .i_short  = 'h', 
     2132        .psz_text = N_("print help for VLC (can be combined with --advanced)") 
     2133    }, 
     2134    { 
     2135        .i_type   = CONFIG_ITEM_BOOL, 
     2136        .psz_name = "longhelp", 
     2137        .i_short  = 'H', 
     2138        .psz_text = N_("print help for VLC and all its modules (can be combined with --advanced)") 
     2139    }, 
     2140    { 
     2141        .i_type   = CONFIG_ITEM_BOOL, 
     2142        .psz_name = "advanced", 
     2143        .psz_text = N_("print help for the advanced options") 
     2144    }, 
     2145    { 
     2146        .i_type   = CONFIG_ITEM_BOOL, 
     2147        .psz_name = "help-verbose", 
     2148        .psz_text = N_("ask for extra verbosity when displaying help") 
     2149    }, 
     2150    { 
     2151        .i_type   = CONFIG_ITEM_BOOL, 
     2152        .psz_name = "list", 
     2153        .i_short  = 'l', 
     2154        .psz_text = N_("print a list of available modules") 
     2155    }, 
     2156    { 
     2157        .i_type   = CONFIG_ITEM_STRING, 
     2158        .psz_name = "module", 
     2159        .i_short  = 'p', 
     2160        .psz_text = N_("print help on a specific module (can be combined with --advanced)") 
     2161    }, 
     2162    { 
     2163        .i_type   = CONFIG_ITEM_BOOL, 
     2164        .psz_name = "save-config", 
     2165        .psz_text = N_("save the current command line options in the config") 
     2166    }, 
     2167    { 
     2168        .i_type   = CONFIG_ITEM_BOOL, 
     2169        .psz_name = "reset-config", 
     2170        .psz_text = N_("reset the current config to the default values") 
     2171    }, 
     2172    { 
     2173        .i_type   = CONFIG_ITEM_STRING, 
     2174        .psz_name = "config", 
     2175        .psz_text = N_("use alternate config file") 
     2176    }, 
     2177    { 
     2178        .i_type   = CONFIG_ITEM_BOOL, 
     2179        .psz_name = "reset-plugins-cache", 
     2180        .psz_text = N_("resets the current plugins cache") 
     2181    }, 
     2182    { 
     2183        .i_type   = CONFIG_ITEM_BOOL, 
     2184        .psz_name = "version", 
     2185        .psz_text = N_("print version information") 
     2186    }, 
     2187    { .i_type = CONFIG_HINT_END } 
    21512188}; 
    21522189