~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/ha_prototypes.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-07 17:20:59 UTC
  • mfrom: (2148 staging)
  • mto: (2148.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: andrew@linuxjedi.co.uk-20110207172059-dyeahrgzrlincoe3
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifndef HA_INNODB_PROTOTYPES_H
28
28
#define HA_INNODB_PROTOTYPES_H
29
29
 
 
30
namespace drizzled { class Session; }
 
31
 
30
32
#include "trx0types.h"
31
33
#if !defined(BUILD_DRIZZLE)
32
34
# include "m_ctype.h" /* CHARSET_INFO */
102
104
        ulint           buflen, /*!< in: length of buf, in bytes */
103
105
        const char*     id,     /*!< in: identifier to convert */
104
106
        ulint           idlen,  /*!< in: length of id, in bytes */
105
 
        void*           thd,    /*!< in: MySQL connection thread, or NULL */
 
107
        drizzled::Session *thd, /*!< in: MySQL connection thread, or NULL */
106
108
        ibool           table_id);/*!< in: TRUE=id is a table or database name;
107
109
                                FALSE=id is an index name */
108
110
 
117
119
ibool
118
120
thd_is_replication_slave_thread(
119
121
/*============================*/
120
 
        void*   thd);   /*!< in: thread handle (THD*) */
 
122
        drizzled::Session *thd);        /*!< in: thread handle (THD*) */
121
123
 
122
124
/******************************************************************//**
123
125
Returns true if the transaction this thread is processing has edited
129
131
ibool
130
132
thd_has_edited_nontrans_tables(
131
133
/*===========================*/
132
 
        void*   thd);   /*!< in: thread handle (THD*) */
 
134
        drizzled::Session *thd);        /*!< in: thread handle (THD*) */
133
135
 
134
136
/*************************************************************//**
135
137
Prints info of a THD object (== user session thread) to the given file. */
138
140
innobase_mysql_print_thd(
139
141
/*=====================*/
140
142
        FILE*   f,              /*!< in: output stream */
141
 
        void*   thd,            /*!< in: pointer to a MySQL THD object */
 
143
        drizzled::Session *thd,         /*!< in: pointer to a MySQL THD object */
142
144
        uint    max_query_len); /*!< in: max query length to print, or 0 to
143
145
                                   use the default max length */
144
146
 
186
188
ibool
187
189
thd_is_select(
188
190
/*==========*/
189
 
        const void*     thd);   /*!< in: thread handle (THD*) */
 
191
        const drizzled::Session *thd);  /*!< in: thread handle (THD*) */
190
192
 
191
193
/******************************************************************//**
192
194
Converts an identifier to a table name. */
224
226
const void *
225
227
innobase_get_charset(
226
228
/*=================*/
227
 
        void*   mysql_thd);     /*!< in: MySQL thread handle */
 
229
        drizzled::Session *mysql_thd);  /*!< in: MySQL thread handle */
228
230
 
229
231
/**********************************************************************//**
230
232
Determines the current SQL statement.
233
235
const char*
234
236
innobase_get_stmt(
235
237
/*==============*/
236
 
       void*   mysql_thd,      /*!< in: MySQL thread handle */
 
238
       drizzled::Session *mysql_thd,      /*!< in: MySQL thread handle */
237
239
       size_t* length)         /*!< out: length of the SQL statement */
238
240
       __attribute__((nonnull));
239
241
 
264
266
ibool
265
267
thd_supports_xa(
266
268
/*============*/
267
 
        void*   thd);   /*!< in: thread handle (THD*), or NULL to query
 
269
        drizzled::Session *thd);        /*!< in: thread handle (THD*), or NULL to query
268
270
                        the global innodb_supports_xa */
269
271
 
270
272
/******************************************************************//**
275
277
ulong
276
278
thd_lock_wait_timeout(
277
279
/*==================*/
278
 
        void*   thd);   /*!< in: thread handle (THD*), or NULL to query
 
280
        drizzled::Session *thd);        /*!< in: thread handle (THD*), or NULL to query
279
281
                        the global innodb_lock_wait_timeout */
280
282
/******************************************************************//**
281
283
Add up the time waited for the lock for the current query. */
283
285
void
284
286
thd_set_lock_wait_time(
285
287
/*===================*/
286
 
        void*   thd,    /*!< in: thread handle (THD*) */
 
288
        drizzled::Session *thd, /*!< in: thread handle (THD*) */
287
289
        ulint   value); /*!< in: time waited for the lock */
288
290
 
289
291
UNIV_INTERN