os/persistentdata/persistentstorage/sql/SQLite/sqlite3ext.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
** 2006 June 7
sl@0
     3
**
sl@0
     4
** The author disclaims copyright to this source code.  In place of
sl@0
     5
** a legal notice, here is a blessing:
sl@0
     6
**
sl@0
     7
**    May you do good and not evil.
sl@0
     8
**    May you find forgiveness for yourself and forgive others.
sl@0
     9
**    May you share freely, never taking more than you give.
sl@0
    10
**
sl@0
    11
*************************************************************************
sl@0
    12
** This header file defines the SQLite interface for use by
sl@0
    13
** shared libraries that want to be imported as extensions into
sl@0
    14
** an SQLite instance.  Shared libraries that intend to be loaded
sl@0
    15
** as extensions by SQLite should #include this file instead of 
sl@0
    16
** sqlite3.h.
sl@0
    17
**
sl@0
    18
** @(#) $Id: sqlite3ext.h,v 1.24 2008/06/30 15:09:29 danielk1977 Exp $
sl@0
    19
*/
sl@0
    20
#ifndef _SQLITE3EXT_H_
sl@0
    21
#define _SQLITE3EXT_H_
sl@0
    22
#include "sqlite3.h"
sl@0
    23
sl@0
    24
typedef struct sqlite3_api_routines sqlite3_api_routines;
sl@0
    25
sl@0
    26
/*
sl@0
    27
** The following structure holds pointers to all of the SQLite API
sl@0
    28
** routines.
sl@0
    29
**
sl@0
    30
** WARNING:  In order to maintain backwards compatibility, add new
sl@0
    31
** interfaces to the end of this structure only.  If you insert new
sl@0
    32
** interfaces in the middle of this structure, then older different
sl@0
    33
** versions of SQLite will not be able to load each others' shared
sl@0
    34
** libraries!
sl@0
    35
*/
sl@0
    36
struct sqlite3_api_routines {
sl@0
    37
  void * (*aggregate_context)(sqlite3_context*,int nBytes);
sl@0
    38
  int  (*aggregate_count)(sqlite3_context*);
sl@0
    39
  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
sl@0
    40
  int  (*bind_double)(sqlite3_stmt*,int,double);
sl@0
    41
  int  (*bind_int)(sqlite3_stmt*,int,int);
sl@0
    42
  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
sl@0
    43
  int  (*bind_null)(sqlite3_stmt*,int);
sl@0
    44
  int  (*bind_parameter_count)(sqlite3_stmt*);
sl@0
    45
  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
sl@0
    46
  const char * (*bind_parameter_name)(sqlite3_stmt*,int);
sl@0
    47
  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
sl@0
    48
  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
sl@0
    49
  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
sl@0
    50
  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
sl@0
    51
  int  (*busy_timeout)(sqlite3*,int ms);
sl@0
    52
  int  (*changes)(sqlite3*);
sl@0
    53
  int  (*close)(sqlite3*);
sl@0
    54
  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const char*));
sl@0
    55
  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const void*));
sl@0
    56
  const void * (*column_blob)(sqlite3_stmt*,int iCol);
sl@0
    57
  int  (*column_bytes)(sqlite3_stmt*,int iCol);
sl@0
    58
  int  (*column_bytes16)(sqlite3_stmt*,int iCol);
sl@0
    59
  int  (*column_count)(sqlite3_stmt*pStmt);
sl@0
    60
  const char * (*column_database_name)(sqlite3_stmt*,int);
sl@0
    61
  const void * (*column_database_name16)(sqlite3_stmt*,int);
sl@0
    62
  const char * (*column_decltype)(sqlite3_stmt*,int i);
sl@0
    63
  const void * (*column_decltype16)(sqlite3_stmt*,int);
sl@0
    64
  double  (*column_double)(sqlite3_stmt*,int iCol);
sl@0
    65
  int  (*column_int)(sqlite3_stmt*,int iCol);
sl@0
    66
  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);
sl@0
    67
  const char * (*column_name)(sqlite3_stmt*,int);
sl@0
    68
  const void * (*column_name16)(sqlite3_stmt*,int);
sl@0
    69
  const char * (*column_origin_name)(sqlite3_stmt*,int);
sl@0
    70
  const void * (*column_origin_name16)(sqlite3_stmt*,int);
sl@0
    71
  const char * (*column_table_name)(sqlite3_stmt*,int);
sl@0
    72
  const void * (*column_table_name16)(sqlite3_stmt*,int);
sl@0
    73
  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
sl@0
    74
  const void * (*column_text16)(sqlite3_stmt*,int iCol);
sl@0
    75
  int  (*column_type)(sqlite3_stmt*,int iCol);
sl@0
    76
  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
sl@0
    77
  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
sl@0
    78
  int  (*complete)(const char*sql);
sl@0
    79
  int  (*complete16)(const void*sql);
sl@0
    80
  int  (*create_collation)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*));
sl@0
    81
  int  (*create_collation16)(sqlite3*,const void*,int,void*,int(*)(void*,int,const void*,int,const void*));
sl@0
    82
  int  (*create_function)(sqlite3*,const char*,int,int,void*,void (*xFunc)(sqlite3_context*,int,sqlite3_value**),void (*xStep)(sqlite3_context*,int,sqlite3_value**),void (*xFinal)(sqlite3_context*));
sl@0
    83
  int  (*create_function16)(sqlite3*,const void*,int,int,void*,void (*xFunc)(sqlite3_context*,int,sqlite3_value**),void (*xStep)(sqlite3_context*,int,sqlite3_value**),void (*xFinal)(sqlite3_context*));
sl@0
    84
  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
sl@0
    85
  int  (*data_count)(sqlite3_stmt*pStmt);
sl@0
    86
  sqlite3 * (*db_handle)(sqlite3_stmt*);
sl@0
    87
  int (*declare_vtab)(sqlite3*,const char*);
sl@0
    88
  int  (*enable_shared_cache)(int);
sl@0
    89
  int  (*errcode)(sqlite3*db);
sl@0
    90
  const char * (*errmsg)(sqlite3*);
sl@0
    91
  const void * (*errmsg16)(sqlite3*);
sl@0
    92
  int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
sl@0
    93
  int  (*expired)(sqlite3_stmt*);
sl@0
    94
  int  (*finalize)(sqlite3_stmt*pStmt);
sl@0
    95
  void  (*free)(void*);
sl@0
    96
  void  (*free_table)(char**result);
sl@0
    97
  int  (*get_autocommit)(sqlite3*);
sl@0
    98
  void * (*get_auxdata)(sqlite3_context*,int);
sl@0
    99
  int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
sl@0
   100
  int  (*global_recover)(void);
sl@0
   101
  void  (*interruptx)(sqlite3*);
sl@0
   102
  sqlite_int64  (*last_insert_rowid)(sqlite3*);
sl@0
   103
  const char * (*libversion)(void);
sl@0
   104
  int  (*libversion_number)(void);
sl@0
   105
  void *(*malloc)(int);
sl@0
   106
  char * (*mprintf)(const char*,...);
sl@0
   107
  int  (*open)(const char*,sqlite3**);
sl@0
   108
  int  (*open16)(const void*,sqlite3**);
sl@0
   109
  int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
sl@0
   110
  int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
sl@0
   111
  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
sl@0
   112
  void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
sl@0
   113
  void *(*realloc)(void*,int);
sl@0
   114
  int  (*reset)(sqlite3_stmt*pStmt);
sl@0
   115
  void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));
sl@0
   116
  void  (*result_double)(sqlite3_context*,double);
sl@0
   117
  void  (*result_error)(sqlite3_context*,const char*,int);
sl@0
   118
  void  (*result_error16)(sqlite3_context*,const void*,int);
sl@0
   119
  void  (*result_int)(sqlite3_context*,int);
sl@0
   120
  void  (*result_int64)(sqlite3_context*,sqlite_int64);
sl@0
   121
  void  (*result_null)(sqlite3_context*);
sl@0
   122
  void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));
sl@0
   123
  void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));
sl@0
   124
  void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));
sl@0
   125
  void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));
sl@0
   126
  void  (*result_value)(sqlite3_context*,sqlite3_value*);
sl@0
   127
  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
sl@0
   128
  int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,const char*,const char*),void*);
sl@0
   129
  void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));
sl@0
   130
  char * (*snprintf)(int,char*,const char*,...);
sl@0
   131
  int  (*step)(sqlite3_stmt*);
sl@0
   132
  int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,char const**,char const**,int*,int*,int*);
sl@0
   133
  void  (*thread_cleanup)(void);
sl@0
   134
  int  (*total_changes)(sqlite3*);
sl@0
   135
  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
sl@0
   136
  int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);
sl@0
   137
  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,sqlite_int64),void*);
sl@0
   138
  void * (*user_data)(sqlite3_context*);
sl@0
   139
  const void * (*value_blob)(sqlite3_value*);
sl@0
   140
  int  (*value_bytes)(sqlite3_value*);
sl@0
   141
  int  (*value_bytes16)(sqlite3_value*);
sl@0
   142
  double  (*value_double)(sqlite3_value*);
sl@0
   143
  int  (*value_int)(sqlite3_value*);
sl@0
   144
  sqlite_int64  (*value_int64)(sqlite3_value*);
sl@0
   145
  int  (*value_numeric_type)(sqlite3_value*);
sl@0
   146
  const unsigned char * (*value_text)(sqlite3_value*);
sl@0
   147
  const void * (*value_text16)(sqlite3_value*);
sl@0
   148
  const void * (*value_text16be)(sqlite3_value*);
sl@0
   149
  const void * (*value_text16le)(sqlite3_value*);
sl@0
   150
  int  (*value_type)(sqlite3_value*);
sl@0
   151
  char *(*vmprintf)(const char*,va_list);
sl@0
   152
  /* Added ??? */
sl@0
   153
  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
sl@0
   154
  /* Added by 3.3.13 */
sl@0
   155
  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
sl@0
   156
  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
sl@0
   157
  int (*clear_bindings)(sqlite3_stmt*);
sl@0
   158
  /* Added by 3.4.1 */
sl@0
   159
  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,void (*xDestroy)(void *));
sl@0
   160
  /* Added by 3.5.0 */
sl@0
   161
  int (*bind_zeroblob)(sqlite3_stmt*,int,int);
sl@0
   162
  int (*blob_bytes)(sqlite3_blob*);
sl@0
   163
  int (*blob_close)(sqlite3_blob*);
sl@0
   164
  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,int,sqlite3_blob**);
sl@0
   165
  int (*blob_read)(sqlite3_blob*,void*,int,int);
sl@0
   166
  int (*blob_write)(sqlite3_blob*,const void*,int,int);
sl@0
   167
  int (*create_collation_v2)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*),void(*)(void*));
sl@0
   168
  int (*file_control)(sqlite3*,const char*,int,void*);
sl@0
   169
  sqlite3_int64 (*memory_highwater)(int);
sl@0
   170
  sqlite3_int64 (*memory_used)(void);
sl@0
   171
  sqlite3_mutex *(*mutex_alloc)(int);
sl@0
   172
  void (*mutex_enter)(sqlite3_mutex*);
sl@0
   173
  void (*mutex_free)(sqlite3_mutex*);
sl@0
   174
  void (*mutex_leave)(sqlite3_mutex*);
sl@0
   175
  int (*mutex_try)(sqlite3_mutex*);
sl@0
   176
  int (*open_v2)(const char*,sqlite3**,int,const char*);
sl@0
   177
  int (*release_memory)(int);
sl@0
   178
  void (*result_error_nomem)(sqlite3_context*);
sl@0
   179
  void (*result_error_toobig)(sqlite3_context*);
sl@0
   180
  int (*sleep)(int);
sl@0
   181
  void (*soft_heap_limit)(int);
sl@0
   182
  sqlite3_vfs *(*vfs_find)(const char*);
sl@0
   183
  int (*vfs_register)(sqlite3_vfs*,int);
sl@0
   184
  int (*vfs_unregister)(sqlite3_vfs*);
sl@0
   185
  int (*xthreadsafe)(void);
sl@0
   186
  void (*result_zeroblob)(sqlite3_context*,int);
sl@0
   187
  void (*result_error_code)(sqlite3_context*,int);
sl@0
   188
  int (*test_control)(int, ...);
sl@0
   189
  void (*randomness)(int,void*);
sl@0
   190
  sqlite3 *(*context_db_handle)(sqlite3_context*);
sl@0
   191
  int (*extended_result_codes)(sqlite3*,int);
sl@0
   192
  int (*limit)(sqlite3*,int,int);
sl@0
   193
  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
sl@0
   194
  const char *(*sql)(sqlite3_stmt*);
sl@0
   195
  int (*status)(int,int*,int*,int);
sl@0
   196
};
sl@0
   197
sl@0
   198
/*
sl@0
   199
** The following macros redefine the API routines so that they are
sl@0
   200
** redirected throught the global sqlite3_api structure.
sl@0
   201
**
sl@0
   202
** This header file is also used by the loadext.c source file
sl@0
   203
** (part of the main SQLite library - not an extension) so that
sl@0
   204
** it can get access to the sqlite3_api_routines structure
sl@0
   205
** definition.  But the main library does not want to redefine
sl@0
   206
** the API.  So the redefinition macros are only valid if the
sl@0
   207
** SQLITE_CORE macros is undefined.
sl@0
   208
*/
sl@0
   209
#ifndef SQLITE_CORE
sl@0
   210
#define sqlite3_aggregate_context      sqlite3_api->aggregate_context
sl@0
   211
#define sqlite3_aggregate_count        sqlite3_api->aggregate_count
sl@0
   212
#define sqlite3_bind_blob              sqlite3_api->bind_blob
sl@0
   213
#define sqlite3_bind_double            sqlite3_api->bind_double
sl@0
   214
#define sqlite3_bind_int               sqlite3_api->bind_int
sl@0
   215
#define sqlite3_bind_int64             sqlite3_api->bind_int64
sl@0
   216
#define sqlite3_bind_null              sqlite3_api->bind_null
sl@0
   217
#define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count
sl@0
   218
#define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index
sl@0
   219
#define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name
sl@0
   220
#define sqlite3_bind_text              sqlite3_api->bind_text
sl@0
   221
#define sqlite3_bind_text16            sqlite3_api->bind_text16
sl@0
   222
#define sqlite3_bind_value             sqlite3_api->bind_value
sl@0
   223
#define sqlite3_busy_handler           sqlite3_api->busy_handler
sl@0
   224
#define sqlite3_busy_timeout           sqlite3_api->busy_timeout
sl@0
   225
#define sqlite3_changes                sqlite3_api->changes
sl@0
   226
#define sqlite3_close                  sqlite3_api->close
sl@0
   227
#define sqlite3_collation_needed       sqlite3_api->collation_needed
sl@0
   228
#define sqlite3_collation_needed16     sqlite3_api->collation_needed16
sl@0
   229
#define sqlite3_column_blob            sqlite3_api->column_blob
sl@0
   230
#define sqlite3_column_bytes           sqlite3_api->column_bytes
sl@0
   231
#define sqlite3_column_bytes16         sqlite3_api->column_bytes16
sl@0
   232
#define sqlite3_column_count           sqlite3_api->column_count
sl@0
   233
#define sqlite3_column_database_name   sqlite3_api->column_database_name
sl@0
   234
#define sqlite3_column_database_name16 sqlite3_api->column_database_name16
sl@0
   235
#define sqlite3_column_decltype        sqlite3_api->column_decltype
sl@0
   236
#define sqlite3_column_decltype16      sqlite3_api->column_decltype16
sl@0
   237
#define sqlite3_column_double          sqlite3_api->column_double
sl@0
   238
#define sqlite3_column_int             sqlite3_api->column_int
sl@0
   239
#define sqlite3_column_int64           sqlite3_api->column_int64
sl@0
   240
#define sqlite3_column_name            sqlite3_api->column_name
sl@0
   241
#define sqlite3_column_name16          sqlite3_api->column_name16
sl@0
   242
#define sqlite3_column_origin_name     sqlite3_api->column_origin_name
sl@0
   243
#define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16
sl@0
   244
#define sqlite3_column_table_name      sqlite3_api->column_table_name
sl@0
   245
#define sqlite3_column_table_name16    sqlite3_api->column_table_name16
sl@0
   246
#define sqlite3_column_text            sqlite3_api->column_text
sl@0
   247
#define sqlite3_column_text16          sqlite3_api->column_text16
sl@0
   248
#define sqlite3_column_type            sqlite3_api->column_type
sl@0
   249
#define sqlite3_column_value           sqlite3_api->column_value
sl@0
   250
#define sqlite3_commit_hook            sqlite3_api->commit_hook
sl@0
   251
#define sqlite3_complete               sqlite3_api->complete
sl@0
   252
#define sqlite3_complete16             sqlite3_api->complete16
sl@0
   253
#define sqlite3_create_collation       sqlite3_api->create_collation
sl@0
   254
#define sqlite3_create_collation16     sqlite3_api->create_collation16
sl@0
   255
#define sqlite3_create_function        sqlite3_api->create_function
sl@0
   256
#define sqlite3_create_function16      sqlite3_api->create_function16
sl@0
   257
#define sqlite3_create_module          sqlite3_api->create_module
sl@0
   258
#define sqlite3_create_module_v2       sqlite3_api->create_module_v2
sl@0
   259
#define sqlite3_data_count             sqlite3_api->data_count
sl@0
   260
#define sqlite3_db_handle              sqlite3_api->db_handle
sl@0
   261
#define sqlite3_declare_vtab           sqlite3_api->declare_vtab
sl@0
   262
#define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache
sl@0
   263
#define sqlite3_errcode                sqlite3_api->errcode
sl@0
   264
#define sqlite3_errmsg                 sqlite3_api->errmsg
sl@0
   265
#define sqlite3_errmsg16               sqlite3_api->errmsg16
sl@0
   266
#define sqlite3_exec                   sqlite3_api->exec
sl@0
   267
#define sqlite3_expired                sqlite3_api->expired
sl@0
   268
#define sqlite3_finalize               sqlite3_api->finalize
sl@0
   269
#define sqlite3_free                   sqlite3_api->free
sl@0
   270
#define sqlite3_free_table             sqlite3_api->free_table
sl@0
   271
#define sqlite3_get_autocommit         sqlite3_api->get_autocommit
sl@0
   272
#define sqlite3_get_auxdata            sqlite3_api->get_auxdata
sl@0
   273
#define sqlite3_get_table              sqlite3_api->get_table
sl@0
   274
#define sqlite3_global_recover         sqlite3_api->global_recover
sl@0
   275
#define sqlite3_interrupt              sqlite3_api->interruptx
sl@0
   276
#define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid
sl@0
   277
#define sqlite3_libversion             sqlite3_api->libversion
sl@0
   278
#define sqlite3_libversion_number      sqlite3_api->libversion_number
sl@0
   279
#define sqlite3_malloc                 sqlite3_api->malloc
sl@0
   280
#define sqlite3_mprintf                sqlite3_api->mprintf
sl@0
   281
#define sqlite3_open                   sqlite3_api->open
sl@0
   282
#define sqlite3_open16                 sqlite3_api->open16
sl@0
   283
#define sqlite3_prepare                sqlite3_api->prepare
sl@0
   284
#define sqlite3_prepare16              sqlite3_api->prepare16
sl@0
   285
#define sqlite3_prepare_v2             sqlite3_api->prepare_v2
sl@0
   286
#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
sl@0
   287
#define sqlite3_profile                sqlite3_api->profile
sl@0
   288
#define sqlite3_progress_handler       sqlite3_api->progress_handler
sl@0
   289
#define sqlite3_realloc                sqlite3_api->realloc
sl@0
   290
#define sqlite3_reset                  sqlite3_api->reset
sl@0
   291
#define sqlite3_result_blob            sqlite3_api->result_blob
sl@0
   292
#define sqlite3_result_double          sqlite3_api->result_double
sl@0
   293
#define sqlite3_result_error           sqlite3_api->result_error
sl@0
   294
#define sqlite3_result_error16         sqlite3_api->result_error16
sl@0
   295
#define sqlite3_result_int             sqlite3_api->result_int
sl@0
   296
#define sqlite3_result_int64           sqlite3_api->result_int64
sl@0
   297
#define sqlite3_result_null            sqlite3_api->result_null
sl@0
   298
#define sqlite3_result_text            sqlite3_api->result_text
sl@0
   299
#define sqlite3_result_text16          sqlite3_api->result_text16
sl@0
   300
#define sqlite3_result_text16be        sqlite3_api->result_text16be
sl@0
   301
#define sqlite3_result_text16le        sqlite3_api->result_text16le
sl@0
   302
#define sqlite3_result_value           sqlite3_api->result_value
sl@0
   303
#define sqlite3_rollback_hook          sqlite3_api->rollback_hook
sl@0
   304
#define sqlite3_set_authorizer         sqlite3_api->set_authorizer
sl@0
   305
#define sqlite3_set_auxdata            sqlite3_api->set_auxdata
sl@0
   306
#define sqlite3_snprintf               sqlite3_api->snprintf
sl@0
   307
#define sqlite3_step                   sqlite3_api->step
sl@0
   308
#define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata
sl@0
   309
#define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup
sl@0
   310
#define sqlite3_total_changes          sqlite3_api->total_changes
sl@0
   311
#define sqlite3_trace                  sqlite3_api->trace
sl@0
   312
#define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings
sl@0
   313
#define sqlite3_update_hook            sqlite3_api->update_hook
sl@0
   314
#define sqlite3_user_data              sqlite3_api->user_data
sl@0
   315
#define sqlite3_value_blob             sqlite3_api->value_blob
sl@0
   316
#define sqlite3_value_bytes            sqlite3_api->value_bytes
sl@0
   317
#define sqlite3_value_bytes16          sqlite3_api->value_bytes16
sl@0
   318
#define sqlite3_value_double           sqlite3_api->value_double
sl@0
   319
#define sqlite3_value_int              sqlite3_api->value_int
sl@0
   320
#define sqlite3_value_int64            sqlite3_api->value_int64
sl@0
   321
#define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type
sl@0
   322
#define sqlite3_value_text             sqlite3_api->value_text
sl@0
   323
#define sqlite3_value_text16           sqlite3_api->value_text16
sl@0
   324
#define sqlite3_value_text16be         sqlite3_api->value_text16be
sl@0
   325
#define sqlite3_value_text16le         sqlite3_api->value_text16le
sl@0
   326
#define sqlite3_value_type             sqlite3_api->value_type
sl@0
   327
#define sqlite3_vmprintf               sqlite3_api->vmprintf
sl@0
   328
#define sqlite3_overload_function      sqlite3_api->overload_function
sl@0
   329
#define sqlite3_prepare_v2             sqlite3_api->prepare_v2
sl@0
   330
#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
sl@0
   331
#define sqlite3_clear_bindings         sqlite3_api->clear_bindings
sl@0
   332
#define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob
sl@0
   333
#define sqlite3_blob_bytes             sqlite3_api->blob_bytes
sl@0
   334
#define sqlite3_blob_close             sqlite3_api->blob_close
sl@0
   335
#define sqlite3_blob_open              sqlite3_api->blob_open
sl@0
   336
#define sqlite3_blob_read              sqlite3_api->blob_read
sl@0
   337
#define sqlite3_blob_write             sqlite3_api->blob_write
sl@0
   338
#define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2
sl@0
   339
#define sqlite3_file_control           sqlite3_api->file_control
sl@0
   340
#define sqlite3_memory_highwater       sqlite3_api->memory_highwater
sl@0
   341
#define sqlite3_memory_used            sqlite3_api->memory_used
sl@0
   342
#define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc
sl@0
   343
#define sqlite3_mutex_enter            sqlite3_api->mutex_enter
sl@0
   344
#define sqlite3_mutex_free             sqlite3_api->mutex_free
sl@0
   345
#define sqlite3_mutex_leave            sqlite3_api->mutex_leave
sl@0
   346
#define sqlite3_mutex_try              sqlite3_api->mutex_try
sl@0
   347
#define sqlite3_open_v2                sqlite3_api->open_v2
sl@0
   348
#define sqlite3_release_memory         sqlite3_api->release_memory
sl@0
   349
#define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem
sl@0
   350
#define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig
sl@0
   351
#define sqlite3_sleep                  sqlite3_api->sleep
sl@0
   352
#define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit
sl@0
   353
#define sqlite3_vfs_find               sqlite3_api->vfs_find
sl@0
   354
#define sqlite3_vfs_register           sqlite3_api->vfs_register
sl@0
   355
#define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister
sl@0
   356
#define sqlite3_threadsafe             sqlite3_api->xthreadsafe
sl@0
   357
#define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob
sl@0
   358
#define sqlite3_result_error_code      sqlite3_api->result_error_code
sl@0
   359
#define sqlite3_test_control           sqlite3_api->test_control
sl@0
   360
#define sqlite3_randomness             sqlite3_api->randomness
sl@0
   361
#define sqlite3_context_db_handle      sqlite3_api->context_db_handle
sl@0
   362
#define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes
sl@0
   363
#define sqlite3_limit                  sqlite3_api->limit
sl@0
   364
#define sqlite3_next_stmt              sqlite3_api->next_stmt
sl@0
   365
#define sqlite3_sql                    sqlite3_api->sql
sl@0
   366
#define sqlite3_status                 sqlite3_api->status
sl@0
   367
#endif /* SQLITE_CORE */
sl@0
   368
sl@0
   369
#define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api = 0;
sl@0
   370
#define SQLITE_EXTENSION_INIT2(v)  sqlite3_api = v;
sl@0
   371
sl@0
   372
#endif /* _SQLITE3EXT_H_ */