Drizzled Public API Documentation

ha_prototypes.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 2006, 2010, Innobase Oy. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /*******************************************************************/
27 #pragma once
28 #ifndef HA_INNODB_PROTOTYPES_H
29 #define HA_INNODB_PROTOTYPES_H
30 
31 namespace drizzled { class Session; }
32 
33 #include "trx0types.h"
34 #if !defined(BUILD_DRIZZLE)
35 # include "m_ctype.h" /* charset_info_st */
36 
37 /*********************************************************************/
40 UNIV_INTERN
41 ulint
43 /*====================*/
44  void* to,
45  ulint to_length,
47  drizzled::CHARSET_INFO* to_cs,
48  const void* from,
49  ulint from_length,
50  drizzled::CHARSET_INFO* from_cs,
51  uint* errors);
54 #endif /* DRIZZLE */
55 /* Prototypes for global functions in ha_innodb.cc that are called by
56 InnoDB's C-code. */
57 
58 
59 /*******************************************************************/
68 UNIV_INTERN
69 ulint
71 /*================*/
72  const char* data,
73  ulint data_len,
75  ulint charset_coll,
76  char* buf,
77  ulint buf_size);
80 /*****************************************************************/
82 UNIV_INTERN
83 void
85 /*============================*/
86  trx_t* trx,
88  const char* full_name,
93  ulint full_name_len);
96 /*****************************************************************/
100 UNIV_INTERN
101 char*
103 /*==================*/
104  char* buf,
105  ulint buflen,
106  const char* id,
107  ulint idlen,
108  drizzled::Session *thd,
109  ibool table_id);
112 /******************************************************************/
119 UNIV_INTERN
120 ibool
122 /*============================*/
123  drizzled::Session *thd);
125 /******************************************************************/
131 UNIV_INTERN
132 ibool
134 /*===========================*/
135  drizzled::Session *thd);
137 /*************************************************************/
139 UNIV_INTERN
140 void
142 /*=====================*/
143  FILE* f,
144  drizzled::Session *thd,
145  uint max_query_len);
148 /**************************************************************/
153 UNIV_INTERN
154 ulint
156 /*==============================*/
157  ulint* unsigned_flag,
162  const void* field)
163  __attribute__((nonnull));
164 
165 /******************************************************************/
167 UNIV_INTERN void
169 /*====================*/
170  ulint cset,
171  ulint* mbminlen,
172  ulint* mbmaxlen);
174 /******************************************************************/
177 UNIV_INTERN
178 int
180 /*================*/
181  const char* a,
182  const char* b);
184 /******************************************************************/
187 UNIV_INTERN
188 const char*
190 /*==============*/
191  const char* path_name);
193 /******************************************************************/
197 UNIV_INTERN
198 ibool
200 /*==========*/
201  const drizzled::Session *thd);
203 /******************************************************************/
205 UNIV_INTERN
206 void
208 /*===========================*/
209  const void* cs,
210  char* to,
211  const char* from,
212  ulint len);
214 /******************************************************************/
216 UNIV_INTERN
217 void
219 /*=====================*/
220  const void* cs,
221  char* to,
222  const char* from,
223  ulint len);
225 /******************************************************************/
227 UNIV_INTERN
228 void
230 /*================*/
231  char* a);
233 /**********************************************************************/
236 const void *
238 /*=================*/
239  drizzled::Session *mysql_thd);
241 /**********************************************************************/
244 UNIV_INTERN
245 const char*
247 /*==============*/
248  drizzled::Session *mysql_thd,
249  size_t* length)
250  __attribute__((nonnull));
251 
252 
253 /******************************************************************/
259 UNIV_INTERN
260 ulint
262 /*===========================*/
263  ulint charset_id,
264  ulint prefix_len,
267  ulint data_len,
268  const char* str);
270 /******************************************************************/
275 UNIV_INTERN
276 ibool
278 /*============*/
279  drizzled::Session *thd);
282 /******************************************************************/
286 UNIV_INTERN
287 ulong
289 /*==================*/
290  drizzled::Session *thd);
292 /******************************************************************/
294 UNIV_INTERN
295 void
297 /*===================*/
298  drizzled::Session *thd,
299  ulint value);
301 UNIV_INTERN
302 bool
303 innobase_isspace(
304  const void * cs,
305  char char_to_test);
306 
307 UNIV_INTERN
308 int
309 innobase_fast_mutex_init(
310  os_fast_mutex_t* fast_mutex);
311 
312 
313 #endif
UNIV_INTERN void innobase_get_cset_width(ulint cset, ulint *mbminlen, ulint *mbmaxlen)
Definition: ha_innodb.cc:1289
UNIV_INTERN void innobase_casedn_str(char *a)
Definition: ha_innodb.cc:1370
UNIV_INTERN const char * innobase_get_stmt(drizzled::Session *mysql_thd, size_t *length) __attribute__((nonnull))
Definition: xtrabackup.cc:751
UNIV_INTERN ulint innobase_get_at_most_n_mbchars(ulint charset_id, ulint prefix_len, ulint data_len, const char *str)
Definition: ha_innodb.cc:9109
pthread_mutex_t os_fast_mutex_t
Definition: os0sync.h:50
TODO: Rename this file - func.h is stupid.
UNIV_INTERN ulint get_innobase_type_from_mysql_type(ulint *unsigned_flag, const void *field) __attribute__((nonnull))
Definition: ha_innodb.cc:4012
const void * innobase_get_charset(drizzled::Session *mysql_thd)
UNIV_INTERN char * innobase_convert_name(char *buf, ulint buflen, const char *id, ulint idlen, drizzled::Session *thd, ibool table_id)
Definition: ha_innodb.cc:1820
UNIV_INTERN int innobase_strcasecmp(const char *a, const char *b)
Definition: ha_innodb.cc:1345
UNIV_INTERN ibool thd_supports_xa(drizzled::Session *thd)
Definition: ha_innodb.cc:986
UNIV_INTERN void innobase_mysql_print_thd(FILE *f, drizzled::Session *thd, uint max_query_len)
Definition: ha_innodb.cc:1264
UNIV_INTERN const char * innobase_basename(const char *path_name)
Definition: ha_innodb.cc:1357
UNIV_INTERN ibool thd_has_edited_nontrans_tables(drizzled::Session *thd)
Definition: ha_innodb.cc:961
UNIV_INTERN ulint innobase_convert_string(void *to, ulint to_length, drizzled::CHARSET_INFO *to_cs, const void *from, ulint from_length, drizzled::CHARSET_INFO *from_cs, uint *errors)
UNIV_INTERN ulint innobase_raw_format(const char *data, ulint data_len, ulint charset_coll, char *buf, ulint buf_size)
Definition: ha_innodb.cc:1518
UNIV_INTERN ulong thd_lock_wait_timeout(drizzled::Session *thd)
Definition: ha_innodb.cc:1000
UNIV_INTERN void innobase_convert_from_id(const void *cs, char *to, const char *from, ulint len)
Definition: ha_innodb.cc:1330
UNIV_INTERN ibool thd_is_replication_slave_thread(drizzled::Session *thd)
Definition: ha_innodb.cc:887
UNIV_INTERN void thd_set_lock_wait_time(drizzled::Session *thd, ulint value)
Definition: ha_innodb.cc:1015
UNIV_INTERN void innobase_convert_from_table_id(const void *cs, char *to, const char *from, ulint len)
Definition: ha_innodb.cc:1316
UNIV_INTERN void innobase_invalidate_query_cache(trx_t *trx, const char *full_name, ulint full_name_len)
Definition: xtrabackup.cc:797
UNIV_INTERN ibool thd_is_select(const drizzled::Session *thd)
Definition: ha_innodb.cc:973