Ir al código fuente de este archivo.
Clases |
| struct | my_option |
'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,...) |
Enumeraciones |
| enum | get_opt_arg_type {
NO_ARG,
OPT_ARG,
REQUIRED_ARG,
NO_ARG,
OPT_ARG,
REQUIRED_ARG
} |
Funciones |
| 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 |
Documentación de los 'defines'
| #define GET_TYPE_MASK 127 |
Documentación de los 'typedefs'
Documentación de las enumeraciones
- Valores de enumeraciones:
| NO_ARG |
|
| OPT_ARG |
|
| REQUIRED_ARG |
|
| NO_ARG |
|
| OPT_ARG |
|
| REQUIRED_ARG |
|
Documentación de las funciones
| my_bool getopt_compare_strings |
( |
const char * |
s, |
|
|
const char * |
t, |
|
|
uint |
length |
|
) |
| |
| 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 | ) |
|
Documentación de las variables