VLC 4.0.0-dev
Loading...
Searching...
No Matches
help.c File Reference
Include dependency graph for help.c:

Macros

#define ShowConsole()
#define PauseConsole()
#define LINE_START   8
#define PADDING_SPACES   25
#define OPTION_VALUE_SEP   " "

Functions

static void Help (libvlc_int_t *, const char *)
static void Usage (libvlc_int_t *, const char *)
static void Version (void)
static void ListModules (libvlc_int_t *, bool)
static unsigned ConsoleWidth (void)
 Returns the console width or a best guess.
bool config_PrintHelp (libvlc_int_t *obj)
 Checks for help command line options such as –help or –version.
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 struct vlc_param *param, 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 []

Macro Definition Documentation

◆ LINE_START

#define LINE_START   8

Referenced by print_item().

◆ OPTION_VALUE_SEP

#define OPTION_VALUE_SEP   " "

Referenced by print_item().

◆ PADDING_SPACES

#define PADDING_SPACES   25

Referenced by print_item().

◆ PauseConsole

#define PauseConsole ( )
Value:
(void)0

Referenced by Help(), ListModules(), and Version().

◆ ShowConsole

#define ShowConsole ( )
Value:
(void)0

Referenced by Help(), ListModules(), and Version().

Function Documentation

◆ config_PrintHelp()

bool config_PrintHelp ( libvlc_int_t * obj)

Checks for help command line options such as –help or –version.

If one is found, print the corresponding text.

Returns
true if a command line options caused some help message to be printed, false otherwise.

References Help(), ListModules(), var_Create(), var_InheritBool(), var_InheritString(), var_SetBool(), Version(), and VLC_VAR_BOOL.

Referenced by libvlc_InternalInit().

◆ ConsoleWidth()

unsigned ConsoleWidth ( void )
static

Returns the console width or a best guess.

Referenced by print_desc().

◆ Help()

void Help ( libvlc_int_t * p_this,
const char * psz_help_name )
static

◆ ListModules()

◆ module_match()

bool module_match ( const module_t * m,
const char * pattern,
bool strict )
static

◆ plugin_show()

◆ print_desc()

void print_desc ( const char * str,
unsigned margin,
bool color )
static

◆ print_help_on_full_help()

void print_help_on_full_help ( void )
inlinestatic

References _.

Referenced by Help().

◆ print_item()

◆ print_section()

void print_section ( const module_t * m,
const module_config_t ** sect,
bool color,
bool desc )
static

◆ Usage()

◆ Version()

◆ vlc_swidth()

int vlc_swidth ( const char * str)
static

References vlc_towc().

Referenced by print_item().

Variable Documentation

◆ vlc_usage

const char vlc_usage[]
static

Referenced by Help().