~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_getopt.h

MergedĀ build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#include "drizzled/typelib.h"
20
20
 
 
21
namespace drizzled
 
22
{
 
23
 
21
24
#define GET_NO_ARG     1
22
25
#define GET_BOOL       2
23
26
#define GET_INT        3
39
42
#define GET_ASK_ADDR     128
40
43
#define GET_TYPE_MASK    127
41
44
 
42
 
 
43
 
#ifdef __cplusplus
44
 
extern "C" {
45
 
#endif
46
 
 
47
45
enum loglevel {
48
46
   ERROR_LEVEL,
49
47
   WARNING_LEVEL,
72
70
  void       *app_type;                 /* To be used by an application */
73
71
};
74
72
 
 
73
 
75
74
typedef bool (* my_get_one_option) (int, const struct my_option *, char * );
76
75
typedef void (* my_error_reporter) (enum loglevel level, const char *format, ... );
77
76
typedef char ** (*getopt_get_addr_func)(const char *, uint32_t, const struct my_option *);
92
91
                               bool *fix);
93
92
bool getopt_compare_strings(const char *s, const char *t, uint32_t length);
94
93
 
95
 
#ifdef __cplusplus
96
 
}
97
 
#endif
 
94
} /* namespace drizzled */
98
95
 
99
96
#endif /* DRIZZLED_MY_GETOPT_H */
100
97