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