summaryrefslogtreecommitdiff
path: root/include/my_getopt.h
diff options
context:
space:
mode:
authorunknown <rburnett@build.mysql.com>2004-08-26 13:43:27 +0200
committerunknown <rburnett@build.mysql.com>2004-08-26 13:43:27 +0200
commitf45d80766783a1f6930b1eee0667022ce9f7f8ec (patch)
treeea0d4239af8a461b94df47956bde1945207ca88e /include/my_getopt.h
parent35bf81e573e085e4e29fe177018e4ce3615cbe5f (diff)
parent81798982020551fc8b344a088039b451342df56a (diff)
downloadmariadb-git-f45d80766783a1f6930b1eee0667022ce9f7f8ec.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into build.mysql.com:/users/rburnett/mysql-4.0 BitKeeper/etc/logging_ok: auto-union sql/mysql_priv.h: Auto merged
Diffstat (limited to 'include/my_getopt.h')
-rw-r--r--include/my_getopt.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/my_getopt.h b/include/my_getopt.h
index 11ecc66fac3..f5b847f7dda 100644
--- a/include/my_getopt.h
+++ b/include/my_getopt.h
@@ -14,6 +14,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+#ifndef _my_getopt_h
+#define _my_getopt_h
+
C_MODE_START
#define GET_NO_ARG 1
@@ -50,14 +53,19 @@ struct my_option
extern char *disabled_my_option;
extern my_bool my_getopt_print_errors;
+typedef my_bool (* my_get_one_option) (int, const struct my_option *, char * );
+typedef void (* my_error_reporter) (enum loglevel level, const char *format, ... );
+
extern int handle_options (int *argc, char ***argv,
- const struct my_option *longopts,
- my_bool (*get_one_option)(int,
- const struct my_option *,
- char *));
+ const struct my_option *longopts, my_get_one_option,
+ my_error_reporter );
extern void my_print_help(const struct my_option *options);
extern void my_print_variables(const struct my_option *options);
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);
+
C_MODE_END
+
+#endif /* _my_getopt_h */
+