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