~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common_includes.h

  • Committer: Monty Taylor
  • Date: 2008-10-29 21:21:57 UTC
  • mto: (520.4.26 devel)
  • mto: This revision was merged to the branch mainline in revision 570.
  • Revision ID: monty@inaugust.com-20081029212157-y3127au8tj1jxfal
Moved a bunch of crap out of common_includes.
Killed innodb_plugin_extras.h.
Made kittens happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
extern const CHARSET_INFO *system_charset_info, *files_charset_info ;
77
77
extern const CHARSET_INFO *national_charset_info, *table_alias_charset;
78
78
 
79
 
extern pthread_key(Session*, THR_Session);
 
79
extern pthread_key_t THR_Session;
80
80
inline Session *_current_session(void)
81
81
{
82
82
  return (Session *)pthread_getspecific(THR_Session);
83
83
}
84
84
#define current_session _current_session()
85
85
 
86
 
extern "C" void set_session_proc_info(Session *session, const char *info);
87
 
extern "C" const char *get_session_proc_info(Session *session);
88
 
 
89
86
/*
90
87
  External variables
91
88
*/
104
101
#include "protocol.h"
105
102
#include "item.h"
106
103
 
107
 
extern my_decimal decimal_zero;
108
 
 
109
 
/** @TODO Find a good header to put this guy... */
110
 
void close_thread_tables(Session *session);
111
104
 
112
105
#include <drizzled/sql_parse.h>
113
106
 
114
107
#include "sql_class.h"
115
 
#include "slave.h" // for tables_ok(), rpl_filter
116
 
 
117
 
void sql_perror(const char *message);
118
 
 
119
 
bool fn_format_relative_to_data_home(char * to, const char *name,
120
 
                                     const char *dir, const char *extension);
121
 
 
122
 
/**
123
 
 * @TODO
124
 
 *
125
 
 * This is much better than the previous situation of a crap-ton
126
 
 * of conditional defines all over mysql_priv.h, but this still
127
 
 * is hackish.  Put these things into a separate header?  Or fix
128
 
 * InnoDB?  Or does the InnoDB plugin already fix this stuff?
129
 
 */
130
 
#if defined DRIZZLE_SERVER || defined INNODB_COMPATIBILITY_HOOKS
131
 
bool check_global_access(Session *session, ulong want_access);
132
 
int get_quote_char_for_identifier(Session *session, const char *name,
133
 
                                  uint32_t length);
134
 
extern struct system_variables global_system_variables;
135
 
extern uint32_t mysql_data_home_len;
136
 
extern char *mysql_data_home,server_version[SERVER_VERSION_LENGTH],
137
 
            mysql_real_data_home[], mysql_unpacked_real_data_home[];
138
 
extern const CHARSET_INFO *character_set_filesystem;
139
 
extern char reg_ext[FN_EXTLEN];
140
 
extern uint32_t reg_ext_length;
141
 
extern ulong specialflag;
142
 
extern uint32_t lower_case_table_names;
143
 
uint32_t strconvert(const CHARSET_INFO *from_cs, const char *from,
144
 
                const CHARSET_INFO *to_cs, char *to, uint32_t to_length,
145
 
                uint32_t *errors);
146
 
uint32_t filename_to_tablename(const char *from, char *to, uint32_t to_length);
147
 
uint32_t tablename_to_filename(const char *from, char *to, uint32_t to_length);
148
 
#endif /* DRIZZLE_SERVER || INNODB_COMPATIBILITY_HOOKS */
149
108
 
150
109
 
151
110
#endif /* DRIZZLE_SERVER_COMMON_INCLUDES_H */