组合类型 |
struct | my_option |
宏定义 |
#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_ENUM 12 |
#define | GET_SET 13 |
#define | GET_DOUBLE 14 |
#define | GET_ASK_ADDR 128 |
#define | GET_TYPE_MASK 127 |
类型定义 |
typedef my_bool(* | my_get_one_option )(int, const struct my_option *, char *) |
typedef void(* | my_error_reporter )(enum loglevel level, const char *format,...) |
枚举 |
enum | get_opt_arg_type { NO_ARG,
OPT_ARG,
REQUIRED_ARG
} |
函数 |
int | handle_options (int *argc, char ***argv, const struct my_option *longopts, my_get_one_option) |
void | my_cleanup_options (const struct my_option *options) |
void | my_print_help (const struct my_option *options) |
void | my_print_variables (const struct my_option *options) |
void | my_getopt_register_get_addr (uchar **(*func_addr)(const char *, uint, const struct my_option *, int *)) |
ulonglong | getopt_ull_limit_value (ulonglong num, const struct my_option *optp, my_bool *fix) |
longlong | getopt_ll_limit_value (longlong, const struct my_option *, my_bool *fix) |
my_bool | getopt_compare_strings (const char *s, const char *t, uint length) |
变量 |
char * | disabled_my_option |
my_bool | my_getopt_print_errors |
my_bool | my_getopt_skip_unknown |
my_error_reporter | my_getopt_error_reporter |