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 /******************************************************************/
188 UNIV_INTERN
189 ibool
191 /*==========*/
192  const drizzled::Session *thd);
194 /******************************************************************/
196 UNIV_INTERN
197 void
199 /*===========================*/
200  const void* cs,
201  char* to,
202  const char* from,
203  ulint len);
205 /******************************************************************/
207 UNIV_INTERN
208 void
210 /*=====================*/
211  const void* cs,
212  char* to,
213  const char* from,
214  ulint len);
216 /******************************************************************/
218 UNIV_INTERN
219 void
221 /*================*/
222  char* a);
224 /**********************************************************************/
227 const void *
229 /*=================*/
230  drizzled::Session *mysql_thd);
232 /**********************************************************************/
235 UNIV_INTERN
236 const char*
238 /*==============*/
239  drizzled::Session *mysql_thd,
240  size_t* length)
241  __attribute__((nonnull));
242 
243 
244 /******************************************************************/
250 UNIV_INTERN
251 ulint
253 /*===========================*/
254  ulint charset_id,
255  ulint prefix_len,
258  ulint data_len,
259  const char* str);
261 /******************************************************************/
266 UNIV_INTERN
267 ibool
269 /*============*/
270  drizzled::Session *thd);
273 /******************************************************************/
277 UNIV_INTERN
278 ulong
280 /*==================*/
281  drizzled::Session *thd);
283 /******************************************************************/
285 UNIV_INTERN
286 void
288 /*===================*/
289  drizzled::Session *thd,
290  ulint value);
292 UNIV_INTERN
293 bool
294 innobase_isspace(
295  const void * cs,
296  char char_to_test);
297 
298 UNIV_INTERN
299 int
300 innobase_fast_mutex_init(
301  os_fast_mutex_t* fast_mutex);
302 
303 
304 #endif