~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_getopt.h

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

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