~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common.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:
79
79
#define OPTION_SETUP_TABLES_DONE        (UINT64_C(1) << 30) // intern
80
80
/** If not set then the thread will ignore all warnings with level notes. */
81
81
#define OPTION_SQL_NOTES                (UINT64_C(1) << 31) // THD, user
82
 
/**
83
 
  Force the used temporary table to be a MyISAM table (because we will use
84
 
  fulltext functions when reading from it.
85
 
*/
86
 
#define TMP_TABLE_FORCE_MYISAM          (UINT64_C(1) << 32)
87
82
#define OPTION_PROFILING                (UINT64_C(1) << 33)
88
83
 
89
84
/*
130
125
  servers won't be able to handle them as 'unsupported'.
131
126
*/
132
127
 
133
 
enum enum_server_command
134
 
{
135
 
  COM_SLEEP,
136
 
  COM_QUIT,
137
 
  COM_INIT_DB,
138
 
  COM_QUERY,
139
 
  COM_SHUTDOWN,
140
 
  COM_CONNECT,
141
 
  COM_PING,
142
 
  /* don't forget to update const char *command_name[] in sql_parse.cc */
143
 
  /* Must be last */
144
 
  COM_END
145
 
};
146
 
 
147
 
 
148
128
/*
149
129
  Length of random string sent by server on handshake; this is also length of
150
130
  obfuscated password, recieved from client
237
217
#define DRIZZLE_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
238
218
#define DRIZZLE_SHUTDOWN_KILLABLE_UPDATE     (unsigned char)(1 << 3)
239
219
 
 
220
#if defined(__cplusplus)
 
221
 
 
222
namespace drizzled
 
223
{
 
224
 
 
225
enum enum_server_command
 
226
{
 
227
  COM_SLEEP,
 
228
  COM_QUIT,
 
229
  COM_INIT_DB,
 
230
  COM_QUERY,
 
231
  COM_SHUTDOWN,
 
232
  COM_CONNECT,
 
233
  COM_PING,
 
234
  /* don't forget to update const char *command_name[] in sql_parse.cc */
 
235
  /* Must be last */
 
236
  COM_END
 
237
};
 
238
 
 
239
 
240
240
enum enum_field_types { DRIZZLE_TYPE_LONG,
241
241
                        DRIZZLE_TYPE_DOUBLE,
242
242
                        DRIZZLE_TYPE_NULL,
257
257
enum Item_result {STRING_RESULT=0, REAL_RESULT, INT_RESULT, ROW_RESULT,
258
258
                  DECIMAL_RESULT};
259
259
 
 
260
} /* namespace drizzled */
 
261
 
 
262
#endif /* defined(__cplusplus) */
260
263
 
261
264
#endif /* DRIZZLED_COMMON_H */