VLC
4.0.0-dev
|
Macros | |
#define | ShowConsole() (void)0 |
#define | PauseConsole() (void)0 |
#define | COL(x) "\033[" #x ";1m" |
#define | RED COL(31) |
#define | GREEN COL(32) |
#define | YELLOW COL(33) |
#define | BLUE COL(34) |
#define | MAGENTA COL(35) |
#define | CYAN COL(36) |
#define | WHITE COL(0) |
#define | GRAY "\033[0m" |
#define | LINE_START 8 |
#define | PADDING_SPACES 25 |
#define | OPTION_VALUE_SEP " " |
Functions | |
static void | Help (vlc_object_t *, const char *) |
static void | Usage (vlc_object_t *, const char *) |
static void | Version (void) |
static void | ListModules (vlc_object_t *, bool) |
static unsigned | ConsoleWidth (void) |
Returns the console width or a best guess. More... | |
bool | config_PrintHelp (vlc_object_t *obj) |
Checks for help command line options such as –help or –version. More... | |
static void | print_help_on_full_help (void) |
static void | print_section (const module_t *m, const module_config_t **sect, bool color, bool desc) |
static void | print_desc (const char *str, unsigned margin, bool color) |
static int | vlc_swidth (const char *str) |
static void | print_item (const module_t *m, const module_config_t *item, const module_config_t **section, bool color, bool desc) |
static bool | module_match (const module_t *m, const char *pattern, bool strict) |
static bool | plugin_show (const vlc_plugin_t *plugin) |
Variables | |
static const char | vlc_usage [] |
#define BLUE COL(34) |
Referenced by print_desc().
#define COL | ( | x | ) | "\033[" #x ";1m" |
#define CYAN COL(36) |
Referenced by ListModules(), print_item(), and Usage().
#define GRAY "\033[0m" |
Referenced by ListModules(), print_desc(), print_item(), print_section(), and Usage().
#define GREEN COL(32) |
Referenced by ListModules(), print_item(), and Usage().
#define LINE_START 8 |
Referenced by print_item().
#define MAGENTA COL(35) |
Referenced by ListModules(), and print_section().
#define OPTION_VALUE_SEP " " |
Referenced by print_item().
#define PADDING_SPACES 25 |
Referenced by print_item().
#define PauseConsole | ( | ) | (void)0 |
Referenced by Help(), ListModules(), and Version().
#define RED COL(31) |
Referenced by print_section().
#define ShowConsole | ( | ) | (void)0 |
Referenced by Help(), ListModules(), and Version().
#define WHITE COL(0) |
Referenced by ListModules(), print_item(), and Usage().
#define YELLOW COL(33) |
Referenced by print_item().
bool config_PrintHelp | ( | vlc_object_t * | obj | ) |
Checks for help command line options such as –help or –version.
If one is found, print the corresponding text.
References Help(), ListModules(), var_Create(), var_InheritBool(), var_InheritString(), var_SetBool(), Version(), and VLC_VAR_BOOL.
Referenced by libvlc_InternalInit().
|
static |
Returns the console width or a best guess.
Referenced by print_desc().
|
static |
References _, PauseConsole, print_help_on_full_help(), ShowConsole, Usage(), and vlc_usage.
Referenced by config_PrintHelp().
|
static |
References count, CYAN, GRAY, GREEN, module_t::i_score, module_t::i_shortcuts, list, MAGENTA, module_get_object(), module_gettext(), module_list_free(), module_list_get(), PauseConsole, module_t::pp_shortcuts, module_t::psz_capability, module_t::psz_longname, ShowConsole, var_InheritBool(), and WHITE.
Referenced by config_PrintHelp().
|
static |
References module_t::i_shortcuts, module_get_object(), and module_t::pp_shortcuts.
Referenced by Usage().
|
static |
References module_config_t::b_removed, vlc_plugin_t::conf, CONFIG_ITEM, module_config_t::i_type, vlc_plugin_t::items, and vlc_plugin_t::size.
Referenced by Usage().
|
static |
References BLUE, ConsoleWidth(), GRAY, unlikely, and vlc_towc().
Referenced by print_item().
|
static |
References _, asprintf(), CONFIG_CLASS, config_GetIntChoices(), config_GetPszChoices(), CONFIG_HINT_CATEGORY, CONFIG_HINT_USAGE, CONFIG_ITEM_BOOL, CONFIG_ITEM_FLOAT, CONFIG_ITEM_INTEGER, CONFIG_ITEM_STRING, CONFIG_SECTION, CYAN, module_value_t::f, GRAY, GREEN, module_value_t::i, module_config_t::i_short, module_config_t::i_type, LINE_START, module_config_t::max, module_config_t::min, module_gettext(), OPTION_VALUE_SEP, PADDING_SPACES, print_desc(), print_section(), module_config_t::psz_longtext, module_config_t::psz_name, module_config_t::psz_text, module_config_t::value, vlc_swidth(), WHITE, and YELLOW.
Referenced by Usage().
|
static |
References GRAY, MAGENTA, module_gettext(), module_config_t::psz_longtext, module_config_t::psz_text, and RED.
Referenced by print_item().
|
static |
References _, module_config_t::b_removed, CYAN, GRAY, GREEN, module_get_object(), module_gettext(), module_match(), p, plugin_show(), print_item(), module_t::psz_help, module_t::psz_longname, var_InheritBool(), vlc_plugins, and WHITE.
Referenced by Help().
|
static |
References _, getenv(), LICENSE_MSG, PauseConsole, psz_vlc_changeset, ShowConsole, utf8_fprintf(), VLC_CompileBy(), VLC_CompileHost(), and VLC_Compiler().
Referenced by config_PrintHelp().
|
static |
References vlc_towc().
Referenced by print_item().
|
static |
Referenced by Help().