Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

my_getopt.h File Reference

Go to the source code of this file.

Defines

#define GET_NO_ARG   1
#define GET_BOOL   2
#define GET_INT   3
#define GET_UINT   4
#define GET_LONG   5
#define GET_ULONG   6
#define GET_LL   7
#define GET_ULL   8
#define GET_STR   9
#define GET_STR_ALLOC   10
#define GET_DISABLED   11
#define GET_ASK_ADDR   128
#define GET_TYPE_MASK   127

Typedefs

typedef my_bool(* my_get_one_option )(int, const struct my_option *, char *)
typedef void(* my_error_reporter )(enum loglevel level, const char *format,...)

Enumerations

enum  get_opt_arg_type { NO_ARG, OPT_ARG, REQUIRED_ARG }

Functions

int handle_options (int *argc, char ***argv, const struct my_option *longopts, my_get_one_option)
void my_print_help (const struct my_option *options)
void my_print_variables (const struct my_option *options)
void my_getopt_register_get_addr (gptr *(*func_addr)(const char *, uint, const struct my_option *))
ulonglong getopt_ull_limit_value (ulonglong num, const struct my_option *optp)
my_bool getopt_compare_strings (const char *s, const char *t, uint length)

Variables

char * disabled_my_option
my_bool my_getopt_print_errors
my_error_reporter my_getopt_error_reporter


Define Documentation

#define GET_ASK_ADDR   128
 

Definition at line 34 of file my_getopt.h.

#define GET_BOOL   2
 

Definition at line 23 of file my_getopt.h.

#define GET_DISABLED   11
 

Definition at line 32 of file my_getopt.h.

#define GET_INT   3
 

Definition at line 24 of file my_getopt.h.

#define GET_LL   7
 

Definition at line 28 of file my_getopt.h.

#define GET_LONG   5
 

Definition at line 26 of file my_getopt.h.

#define GET_NO_ARG   1
 

Definition at line 22 of file my_getopt.h.

#define GET_STR   9
 

Definition at line 30 of file my_getopt.h.

#define GET_STR_ALLOC   10
 

Definition at line 31 of file my_getopt.h.

#define GET_TYPE_MASK   127
 

Definition at line 35 of file my_getopt.h.

#define GET_UINT   4
 

Definition at line 25 of file my_getopt.h.

#define GET_ULL   8
 

Definition at line 29 of file my_getopt.h.

#define GET_ULONG   6
 

Definition at line 27 of file my_getopt.h.


Typedef Documentation

typedef void(* my_error_reporter)(enum loglevel level, const char *format,...)
 

Definition at line 58 of file my_getopt.h.

typedef my_bool(* my_get_one_option)(int, const struct my_option *, char *)
 

Definition at line 57 of file my_getopt.h.


Enumeration Type Documentation

enum get_opt_arg_type
 

Enumeration values:
NO_ARG 
OPT_ARG 
REQUIRED_ARG 

Definition at line 37 of file my_getopt.h.


Function Documentation

my_bool getopt_compare_strings const char *  s,
const char *  t,
uint  length
 

ulonglong getopt_ull_limit_value ulonglong  num,
const struct my_option optp
 

int handle_options int *  argc,
char ***  argv,
const struct my_option longopts,
my_get_one_option 
 

void my_getopt_register_get_addr gptr *(*)(const char *, uint, const struct my_option *)  func_addr  ) 
 

void my_print_help const struct my_option options  ) 
 

void my_print_variables const struct my_option options  ) 
 


Variable Documentation

char* disabled_my_option
 

my_error_reporter my_getopt_error_reporter
 

my_bool my_getopt_print_errors
 


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2