~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common_includes.h

  • Committer: Monty Taylor
  • Date: 2008-10-22 21:31:15 UTC
  • Revision ID: monty@inaugust.com-20081022213115-xuxc80r939tl88p1
Renamed drizzle_common again. Removed sql_common. (empty) 
Now all we need to do is merge/disect base.h, common.h, common_includes.h, server_includes.h and globa.h (good grief)

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
/* Network database operations (hostent, netent, servent, etc...*/
70
70
#include <netdb.h>
71
71
/* Definitions that the client and the server have in common */
72
 
#include <libdrizzle/drizzle_com.h>
 
72
#include <drizzled/common.h>
73
73
/* gettext() convenience wrappers */
74
 
#include <libdrizzle/gettext.h>
 
74
#include <drizzled/gettext.h>
75
75
/* Contains system-wide constants and #defines */
76
76
#include <drizzled/definitions.h>
77
77
/* System-wide common data structures */
83
83
/* Definition of the MY_LOCALE struct and some convenience functions */
84
84
#include <drizzled/sql_locale.h>
85
85
 
 
86
#include <drizzled/korr.h>
 
87
 
86
88
#ifdef HAVE_DTRACE
87
89
#define _DTRACE_VERSION 1
88
90
#else
251
253
class TableList;
252
254
class String;
253
255
class Table;
254
 
class THD;
 
256
class Session;
255
257
class user_var_entry;
256
258
class Security_context;
257
259
 
258
 
#define thd_proc_info(thd, msg)  set_thd_proc_info(thd, msg, __func__, __FILE__, __LINE__)
259
 
 
260
 
extern pthread_key(THD*, THR_THD);
261
 
inline THD *_current_thd(void)
 
260
extern pthread_key(Session*, THR_Session);
 
261
inline Session *_current_session(void)
262
262
{
263
 
  return (THD *)pthread_getspecific(THR_THD);
 
263
  return (Session *)pthread_getspecific(THR_Session);
264
264
}
265
 
#define current_thd _current_thd()
 
265
#define current_session _current_session()
266
266
 
267
 
/** 
268
 
  The meat of thd_proc_info(THD*, char*), a macro that packs the last
269
 
  three calling-info parameters. 
270
 
*/
271
 
extern "C"
272
 
const char *set_thd_proc_info(THD *thd, const char *info, 
273
 
                              const char *calling_func, 
274
 
                              const char *calling_file, 
275
 
                              const unsigned int calling_line);
 
267
extern "C" void set_session_proc_info(Session *session, const char *info);
 
268
extern "C" const char *get_session_proc_info(Session *session);
276
269
 
277
270
/*
278
271
  External variables
295
288
extern my_decimal decimal_zero;
296
289
 
297
290
/** @TODO Find a good header to put this guy... */
298
 
void close_thread_tables(THD *thd);
 
291
void close_thread_tables(Session *session);
299
292
 
300
293
#include <drizzled/sql_parse.h>
301
294
 
317
310
 * InnoDB?  Or does the InnoDB plugin already fix this stuff?
318
311
 */
319
312
#if defined DRIZZLE_SERVER || defined INNODB_COMPATIBILITY_HOOKS
320
 
bool check_global_access(THD *thd, ulong want_access);
321
 
int get_quote_char_for_identifier(THD *thd, const char *name, uint32_t length);
 
313
bool check_global_access(Session *session, ulong want_access);
 
314
int get_quote_char_for_identifier(Session *session, const char *name, uint32_t length);
322
315
extern struct system_variables global_system_variables;
323
316
extern uint32_t mysql_data_home_len;
324
317
extern char *mysql_data_home,server_version[SERVER_VERSION_LENGTH],