Mixes for Privacy and Anonymity in the Internet
Functions | Variables
popthelp.cpp File Reference

Functions

static void displayArgs (poptContext con, enum poptCallbackReason, struct poptOption *key, const char *, void *)
 
static const char *const getTableTranslationDomain (const struct poptOption *table)
 
static const char *const getArgDescrip (const struct poptOption *opt, const char *translation_domain)
 
static void singleOptionHelp (FILE *f, int maxLeftCol, const struct poptOption *opt, const char *translation_domain)
 
static int maxArgWidth (const struct poptOption *opt, const char *translation_domain)
 
static void singleTableHelp (FILE *f, const struct poptOption *table, int left, const char *translation_domain)
 
static int showHelpIntro (poptContext con, FILE *f)
 
void poptPrintHelp (poptContext con, FILE *f, int)
 
static int singleOptionUsage (FILE *f, int cursor, const struct poptOption *opt, const char *translation_domain)
 
static int singleTableUsage (FILE *f, int cursor, const struct poptOption *table, const char *translation_domain)
 
static int showShortOptions (const struct poptOption *opt, FILE *f, char *str)
 
void poptPrintUsage (poptContext con, FILE *f, int)
 
void poptSetOtherOptionHelp (poptContext con, const char *text)
 

Variables

struct poptOption poptHelpOptions []
 

Function Documentation

◆ displayArgs()

static void displayArgs ( poptContext  con,
enum  poptCallbackReason,
struct poptOption key,
const char *  ,
void *   
)
static

◆ getArgDescrip()

static const char* const getArgDescrip ( const struct poptOption opt,
const char *  translation_domain 
)
static

◆ getTableTranslationDomain()

static const char* const getTableTranslationDomain ( const struct poptOption table)
static

◆ maxArgWidth()

static int maxArgWidth ( const struct poptOption opt,
const char *  translation_domain 
)
static

◆ poptPrintHelp()

void poptPrintHelp ( poptContext  con,
FILE *  f,
int  flags 
)

◆ poptPrintUsage()

void poptPrintUsage ( poptContext  con,
FILE *  f,
int  flags 
)

◆ poptSetOtherOptionHelp()

void poptSetOtherOptionHelp ( poptContext  con,
const char *  text 
)

◆ showHelpIntro()

static int showHelpIntro ( poptContext  con,
FILE *  f 
)
static

◆ showShortOptions()

static int showShortOptions ( const struct poptOption opt,
FILE *  f,
char *  str 
)
static

◆ singleOptionHelp()

static void singleOptionHelp ( FILE *  f,
int  maxLeftCol,
const struct poptOption opt,
const char *  translation_domain 
)
static

◆ singleOptionUsage()

static int singleOptionUsage ( FILE *  f,
int  cursor,
const struct poptOption opt,
const char *  translation_domain 
)
static

◆ singleTableHelp()

static void singleTableHelp ( FILE *  f,
const struct poptOption table,
int  left,
const char *  translation_domain 
)
static

◆ singleTableUsage()

static int singleTableUsage ( FILE *  f,
int  cursor,
const struct poptOption table,
const char *  translation_domain 
)
static

Variable Documentation

◆ poptHelpOptions

struct poptOption poptHelpOptions[]
Initial value:
= {
{ NULL, '\0', POPT_ARG_CALLBACK, (void *)&displayArgs, '\0', NULL, NULL },
{ "help", '?', 0, NULL, '?', N_("Show this help message"), NULL },
{ "usage", 'u', 0, NULL, 'u', N_("Display brief usage message"), NULL },
{ NULL, '\0', 0, NULL, 0, NULL, NULL }
}
#define POPT_ARG_CALLBACK
Definition: popt.h:21
static void displayArgs(poptContext con, enum poptCallbackReason, struct poptOption *key, const char *, void *)
Definition: popthelp.cpp:10
#define N_(foo)
Definition: poptint.h:85

Referenced by getArgDescrip().