VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
help.c File Reference
Include dependency graph for help.c:

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 FORMAT_STRING   " %s --%s%s%s%s%s%s%s "
#define COLOR_FORMAT_STRING   (WHITE" %s --%s"YELLOW"%s%s%s%s%s%s "GRAY)
#define COLOR_FORMAT_STRING_BOOL   (WHITE" %s --%s%s%s%s%s%s%s "GRAY)
#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 int ConsoleWidth (void)
bool config_PrintHelp (vlc_object_t *obj)
 Checks for help command line options such as –help or –version.
static void print_help_on_full_help (void)
static void print_help_section (const module_t *m, const module_config_t *p_item, bool b_color, bool b_description)

Variables

static const char vlc_usage []

Macro Definition Documentation

#define BLUE   COL(34)

Referenced by Usage().

#define COL (   x)    "\033[" #x ";1m"
#define COLOR_FORMAT_STRING   (WHITE" %s --%s"YELLOW"%s%s%s%s%s%s "GRAY)

Referenced by Usage().

#define COLOR_FORMAT_STRING_BOOL   (WHITE" %s --%s%s%s%s%s%s%s "GRAY)

Referenced by Usage().

#define CYAN   COL(36)

Referenced by ListModules(), and Usage().

#define FORMAT_STRING   " %s --%s%s%s%s%s%s%s "

Referenced by Usage().

#define GRAY   "\033[0m"
#define GREEN   COL(32)

Referenced by ListModules(), and Usage().

#define LINE_START   8

Referenced by Usage().

#define MAGENTA   COL(35)

Referenced by ListModules(), and print_help_section().

#define OPTION_VALUE_SEP   " "

Referenced by Usage().

#define PADDING_SPACES   25

Referenced by Usage().

#define PauseConsole ( )    (void)0

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

#define RED   COL(31)

Referenced by print_help_section().

#define ShowConsole ( )    (void)0

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

#define WHITE   COL(0)

Referenced by ListModules(), and Usage().

#define YELLOW   COL(33)

Function Documentation

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.

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

static int ConsoleWidth ( void  )
static

Referenced by Usage().

static void Help ( vlc_object_t p_this,
const char *  psz_help_name 
)
static
static void ListModules ( vlc_object_t p_this,
bool  b_verbose 
)
static
static void print_help_on_full_help ( void  )
inlinestatic

References _, and utf8_fprintf().

Referenced by Help().

static void print_help_section ( const module_t m,
const module_config_t p_item,
bool  b_color,
bool  b_description 
)
static
static void Usage ( vlc_object_t p_this,
const char *  psz_search 
)
static
static void Version ( void  )
static

Variable Documentation

const char vlc_usage[]
static

Referenced by Help().