
Defines | |
| #define | b_ignore_errors (pindex == NULL) |
Functions | |
| int | config_LoadCmdLine (vlc_object_t *p_this, int i_argc, const char *ppsz_argv[], int *pindex) |
| Parse command line for configuration options. | |
| #define b_ignore_errors (pindex == NULL) |
Referenced by config_LoadCmdLine().
| int config_LoadCmdLine | ( | vlc_object_t * | p_this, | |
| int | i_argc, | |||
| const char * | ppsz_argv[], | |||
| int * | pindex | |||
| ) |
Parse command line for configuration options.
Now that the module_bank has been initialized, we can dynamically generate the longopts structure used by getops. We have to do it this way because we don't know (and don't want to know) in advance the configuration options used (ie. exported) by each module.
| p_this | object to write command line options as variables to | |
| i_argc | number of command line arguments | |
| ppsz_args | commandl ine arguments [IN/OUT] | |
| pindex | NULL to ignore unknown options, otherwise index of the first non-option argument [OUT] |
References vlc_getopt_s::arg, asprintf(), b_ignore_errors, module_config_t::b_removed, CONFIG_CLASS, config_FindConfig(), CONFIG_ITEM, CONFIG_ITEM_BOOL, CONFIG_ITEM_FLOAT, CONFIG_ITEM_INTEGER, CONFIG_ITEM_STRING, module_t::confsize, vlc_option::flag, vlc_option::has_arg, module_t::i_bool_items, module_t::i_config_items, module_config_t::i_short, i_type, module_config_t::i_type, vlc_getopt_s::ind, list, module_list_free(), module_list_get(), name, vlc_option::name, vlc_getopt_s::opt, module_t::p_config, psz_name, module_config_t::psz_name, strdup(), strtoll(), us_atof(), vlc_option::val, var_Create, var_SetBool, var_SetFloat, var_SetInteger, var_SetString, vlc_getopt_long(), VLC_VAR_BOOL, VLC_VAR_FLOAT, VLC_VAR_INTEGER, and VLC_VAR_STRING.
1.7.1