summaryrefslogtreecommitdiff
path: root/include/my_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r--include/my_getopt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h
index e602773e181..e6ca1130f85 100644
--- a/include/my_getopt.h
+++ b/include/my_getopt.h
@@ -29,6 +29,10 @@ C_MODE_START
#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
enum get_opt_arg_type { NO_ARG, OPT_ARG, REQUIRED_ARG };
@@ -61,6 +65,8 @@ extern int handle_options (int *argc, char ***argv,
const struct my_option *longopts, my_get_one_option);
extern void my_print_help(const struct my_option *options);
extern void my_print_variables(const struct my_option *options);
+extern 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);