os/persistentdata/persistentstorage/sqlite3api/SQLite/sqlite3ext.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/persistentstorage/sqlite3api/SQLite/sqlite3ext.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,372 @@
     1.4 +/*
     1.5 +** 2006 June 7
     1.6 +**
     1.7 +** The author disclaims copyright to this source code.  In place of
     1.8 +** a legal notice, here is a blessing:
     1.9 +**
    1.10 +**    May you do good and not evil.
    1.11 +**    May you find forgiveness for yourself and forgive others.
    1.12 +**    May you share freely, never taking more than you give.
    1.13 +**
    1.14 +*************************************************************************
    1.15 +** This header file defines the SQLite interface for use by
    1.16 +** shared libraries that want to be imported as extensions into
    1.17 +** an SQLite instance.  Shared libraries that intend to be loaded
    1.18 +** as extensions by SQLite should #include this file instead of 
    1.19 +** sqlite3.h.
    1.20 +**
    1.21 +** @(#) $Id: sqlite3ext.h,v 1.24 2008/06/30 15:09:29 danielk1977 Exp $
    1.22 +*/
    1.23 +#ifndef _SQLITE3EXT_H_
    1.24 +#define _SQLITE3EXT_H_
    1.25 +#include "sqlite3.h"
    1.26 +
    1.27 +typedef struct sqlite3_api_routines sqlite3_api_routines;
    1.28 +
    1.29 +/*
    1.30 +** The following structure holds pointers to all of the SQLite API
    1.31 +** routines.
    1.32 +**
    1.33 +** WARNING:  In order to maintain backwards compatibility, add new
    1.34 +** interfaces to the end of this structure only.  If you insert new
    1.35 +** interfaces in the middle of this structure, then older different
    1.36 +** versions of SQLite will not be able to load each others' shared
    1.37 +** libraries!
    1.38 +*/
    1.39 +struct sqlite3_api_routines {
    1.40 +  void * (*aggregate_context)(sqlite3_context*,int nBytes);
    1.41 +  int  (*aggregate_count)(sqlite3_context*);
    1.42 +  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
    1.43 +  int  (*bind_double)(sqlite3_stmt*,int,double);
    1.44 +  int  (*bind_int)(sqlite3_stmt*,int,int);
    1.45 +  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
    1.46 +  int  (*bind_null)(sqlite3_stmt*,int);
    1.47 +  int  (*bind_parameter_count)(sqlite3_stmt*);
    1.48 +  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
    1.49 +  const char * (*bind_parameter_name)(sqlite3_stmt*,int);
    1.50 +  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
    1.51 +  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
    1.52 +  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
    1.53 +  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
    1.54 +  int  (*busy_timeout)(sqlite3*,int ms);
    1.55 +  int  (*changes)(sqlite3*);
    1.56 +  int  (*close)(sqlite3*);
    1.57 +  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const char*));
    1.58 +  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const void*));
    1.59 +  const void * (*column_blob)(sqlite3_stmt*,int iCol);
    1.60 +  int  (*column_bytes)(sqlite3_stmt*,int iCol);
    1.61 +  int  (*column_bytes16)(sqlite3_stmt*,int iCol);
    1.62 +  int  (*column_count)(sqlite3_stmt*pStmt);
    1.63 +  const char * (*column_database_name)(sqlite3_stmt*,int);
    1.64 +  const void * (*column_database_name16)(sqlite3_stmt*,int);
    1.65 +  const char * (*column_decltype)(sqlite3_stmt*,int i);
    1.66 +  const void * (*column_decltype16)(sqlite3_stmt*,int);
    1.67 +  double  (*column_double)(sqlite3_stmt*,int iCol);
    1.68 +  int  (*column_int)(sqlite3_stmt*,int iCol);
    1.69 +  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);
    1.70 +  const char * (*column_name)(sqlite3_stmt*,int);
    1.71 +  const void * (*column_name16)(sqlite3_stmt*,int);
    1.72 +  const char * (*column_origin_name)(sqlite3_stmt*,int);
    1.73 +  const void * (*column_origin_name16)(sqlite3_stmt*,int);
    1.74 +  const char * (*column_table_name)(sqlite3_stmt*,int);
    1.75 +  const void * (*column_table_name16)(sqlite3_stmt*,int);
    1.76 +  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
    1.77 +  const void * (*column_text16)(sqlite3_stmt*,int iCol);
    1.78 +  int  (*column_type)(sqlite3_stmt*,int iCol);
    1.79 +  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
    1.80 +  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
    1.81 +  int  (*complete)(const char*sql);
    1.82 +  int  (*complete16)(const void*sql);
    1.83 +  int  (*create_collation)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*));
    1.84 +  int  (*create_collation16)(sqlite3*,const void*,int,void*,int(*)(void*,int,const void*,int,const void*));
    1.85 +  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*));
    1.86 +  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*));
    1.87 +  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
    1.88 +  int  (*data_count)(sqlite3_stmt*pStmt);
    1.89 +  sqlite3 * (*db_handle)(sqlite3_stmt*);
    1.90 +  int (*declare_vtab)(sqlite3*,const char*);
    1.91 +  int  (*enable_shared_cache)(int);
    1.92 +  int  (*errcode)(sqlite3*db);
    1.93 +  const char * (*errmsg)(sqlite3*);
    1.94 +  const void * (*errmsg16)(sqlite3*);
    1.95 +  int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
    1.96 +  int  (*expired)(sqlite3_stmt*);
    1.97 +  int  (*finalize)(sqlite3_stmt*pStmt);
    1.98 +  void  (*free)(void*);
    1.99 +  void  (*free_table)(char**result);
   1.100 +  int  (*get_autocommit)(sqlite3*);
   1.101 +  void * (*get_auxdata)(sqlite3_context*,int);
   1.102 +  int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
   1.103 +  int  (*global_recover)(void);
   1.104 +  void  (*interruptx)(sqlite3*);
   1.105 +  sqlite_int64  (*last_insert_rowid)(sqlite3*);
   1.106 +  const char * (*libversion)(void);
   1.107 +  int  (*libversion_number)(void);
   1.108 +  void *(*malloc)(int);
   1.109 +  char * (*mprintf)(const char*,...);
   1.110 +  int  (*open)(const char*,sqlite3**);
   1.111 +  int  (*open16)(const void*,sqlite3**);
   1.112 +  int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
   1.113 +  int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
   1.114 +  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
   1.115 +  void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
   1.116 +  void *(*realloc)(void*,int);
   1.117 +  int  (*reset)(sqlite3_stmt*pStmt);
   1.118 +  void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));
   1.119 +  void  (*result_double)(sqlite3_context*,double);
   1.120 +  void  (*result_error)(sqlite3_context*,const char*,int);
   1.121 +  void  (*result_error16)(sqlite3_context*,const void*,int);
   1.122 +  void  (*result_int)(sqlite3_context*,int);
   1.123 +  void  (*result_int64)(sqlite3_context*,sqlite_int64);
   1.124 +  void  (*result_null)(sqlite3_context*);
   1.125 +  void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));
   1.126 +  void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));
   1.127 +  void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));
   1.128 +  void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));
   1.129 +  void  (*result_value)(sqlite3_context*,sqlite3_value*);
   1.130 +  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
   1.131 +  int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,const char*,const char*),void*);
   1.132 +  void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));
   1.133 +  char * (*snprintf)(int,char*,const char*,...);
   1.134 +  int  (*step)(sqlite3_stmt*);
   1.135 +  int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,char const**,char const**,int*,int*,int*);
   1.136 +  void  (*thread_cleanup)(void);
   1.137 +  int  (*total_changes)(sqlite3*);
   1.138 +  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
   1.139 +  int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);
   1.140 +  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,sqlite_int64),void*);
   1.141 +  void * (*user_data)(sqlite3_context*);
   1.142 +  const void * (*value_blob)(sqlite3_value*);
   1.143 +  int  (*value_bytes)(sqlite3_value*);
   1.144 +  int  (*value_bytes16)(sqlite3_value*);
   1.145 +  double  (*value_double)(sqlite3_value*);
   1.146 +  int  (*value_int)(sqlite3_value*);
   1.147 +  sqlite_int64  (*value_int64)(sqlite3_value*);
   1.148 +  int  (*value_numeric_type)(sqlite3_value*);
   1.149 +  const unsigned char * (*value_text)(sqlite3_value*);
   1.150 +  const void * (*value_text16)(sqlite3_value*);
   1.151 +  const void * (*value_text16be)(sqlite3_value*);
   1.152 +  const void * (*value_text16le)(sqlite3_value*);
   1.153 +  int  (*value_type)(sqlite3_value*);
   1.154 +  char *(*vmprintf)(const char*,va_list);
   1.155 +  /* Added ??? */
   1.156 +  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
   1.157 +  /* Added by 3.3.13 */
   1.158 +  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
   1.159 +  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
   1.160 +  int (*clear_bindings)(sqlite3_stmt*);
   1.161 +  /* Added by 3.4.1 */
   1.162 +  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,void (*xDestroy)(void *));
   1.163 +  /* Added by 3.5.0 */
   1.164 +  int (*bind_zeroblob)(sqlite3_stmt*,int,int);
   1.165 +  int (*blob_bytes)(sqlite3_blob*);
   1.166 +  int (*blob_close)(sqlite3_blob*);
   1.167 +  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,int,sqlite3_blob**);
   1.168 +  int (*blob_read)(sqlite3_blob*,void*,int,int);
   1.169 +  int (*blob_write)(sqlite3_blob*,const void*,int,int);
   1.170 +  int (*create_collation_v2)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*),void(*)(void*));
   1.171 +  int (*file_control)(sqlite3*,const char*,int,void*);
   1.172 +  sqlite3_int64 (*memory_highwater)(int);
   1.173 +  sqlite3_int64 (*memory_used)(void);
   1.174 +  sqlite3_mutex *(*mutex_alloc)(int);
   1.175 +  void (*mutex_enter)(sqlite3_mutex*);
   1.176 +  void (*mutex_free)(sqlite3_mutex*);
   1.177 +  void (*mutex_leave)(sqlite3_mutex*);
   1.178 +  int (*mutex_try)(sqlite3_mutex*);
   1.179 +  int (*open_v2)(const char*,sqlite3**,int,const char*);
   1.180 +  int (*release_memory)(int);
   1.181 +  void (*result_error_nomem)(sqlite3_context*);
   1.182 +  void (*result_error_toobig)(sqlite3_context*);
   1.183 +  int (*sleep)(int);
   1.184 +  void (*soft_heap_limit)(int);
   1.185 +  sqlite3_vfs *(*vfs_find)(const char*);
   1.186 +  int (*vfs_register)(sqlite3_vfs*,int);
   1.187 +  int (*vfs_unregister)(sqlite3_vfs*);
   1.188 +  int (*xthreadsafe)(void);
   1.189 +  void (*result_zeroblob)(sqlite3_context*,int);
   1.190 +  void (*result_error_code)(sqlite3_context*,int);
   1.191 +  int (*test_control)(int, ...);
   1.192 +  void (*randomness)(int,void*);
   1.193 +  sqlite3 *(*context_db_handle)(sqlite3_context*);
   1.194 +  int (*extended_result_codes)(sqlite3*,int);
   1.195 +  int (*limit)(sqlite3*,int,int);
   1.196 +  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
   1.197 +  const char *(*sql)(sqlite3_stmt*);
   1.198 +  int (*status)(int,int*,int*,int);
   1.199 +};
   1.200 +
   1.201 +/*
   1.202 +** The following macros redefine the API routines so that they are
   1.203 +** redirected throught the global sqlite3_api structure.
   1.204 +**
   1.205 +** This header file is also used by the loadext.c source file
   1.206 +** (part of the main SQLite library - not an extension) so that
   1.207 +** it can get access to the sqlite3_api_routines structure
   1.208 +** definition.  But the main library does not want to redefine
   1.209 +** the API.  So the redefinition macros are only valid if the
   1.210 +** SQLITE_CORE macros is undefined.
   1.211 +*/
   1.212 +#ifndef SQLITE_CORE
   1.213 +#define sqlite3_aggregate_context      sqlite3_api->aggregate_context
   1.214 +#define sqlite3_aggregate_count        sqlite3_api->aggregate_count
   1.215 +#define sqlite3_bind_blob              sqlite3_api->bind_blob
   1.216 +#define sqlite3_bind_double            sqlite3_api->bind_double
   1.217 +#define sqlite3_bind_int               sqlite3_api->bind_int
   1.218 +#define sqlite3_bind_int64             sqlite3_api->bind_int64
   1.219 +#define sqlite3_bind_null              sqlite3_api->bind_null
   1.220 +#define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count
   1.221 +#define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index
   1.222 +#define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name
   1.223 +#define sqlite3_bind_text              sqlite3_api->bind_text
   1.224 +#define sqlite3_bind_text16            sqlite3_api->bind_text16
   1.225 +#define sqlite3_bind_value             sqlite3_api->bind_value
   1.226 +#define sqlite3_busy_handler           sqlite3_api->busy_handler
   1.227 +#define sqlite3_busy_timeout           sqlite3_api->busy_timeout
   1.228 +#define sqlite3_changes                sqlite3_api->changes
   1.229 +#define sqlite3_close                  sqlite3_api->close
   1.230 +#define sqlite3_collation_needed       sqlite3_api->collation_needed
   1.231 +#define sqlite3_collation_needed16     sqlite3_api->collation_needed16
   1.232 +#define sqlite3_column_blob            sqlite3_api->column_blob
   1.233 +#define sqlite3_column_bytes           sqlite3_api->column_bytes
   1.234 +#define sqlite3_column_bytes16         sqlite3_api->column_bytes16
   1.235 +#define sqlite3_column_count           sqlite3_api->column_count
   1.236 +#define sqlite3_column_database_name   sqlite3_api->column_database_name
   1.237 +#define sqlite3_column_database_name16 sqlite3_api->column_database_name16
   1.238 +#define sqlite3_column_decltype        sqlite3_api->column_decltype
   1.239 +#define sqlite3_column_decltype16      sqlite3_api->column_decltype16
   1.240 +#define sqlite3_column_double          sqlite3_api->column_double
   1.241 +#define sqlite3_column_int             sqlite3_api->column_int
   1.242 +#define sqlite3_column_int64           sqlite3_api->column_int64
   1.243 +#define sqlite3_column_name            sqlite3_api->column_name
   1.244 +#define sqlite3_column_name16          sqlite3_api->column_name16
   1.245 +#define sqlite3_column_origin_name     sqlite3_api->column_origin_name
   1.246 +#define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16
   1.247 +#define sqlite3_column_table_name      sqlite3_api->column_table_name
   1.248 +#define sqlite3_column_table_name16    sqlite3_api->column_table_name16
   1.249 +#define sqlite3_column_text            sqlite3_api->column_text
   1.250 +#define sqlite3_column_text16          sqlite3_api->column_text16
   1.251 +#define sqlite3_column_type            sqlite3_api->column_type
   1.252 +#define sqlite3_column_value           sqlite3_api->column_value
   1.253 +#define sqlite3_commit_hook            sqlite3_api->commit_hook
   1.254 +#define sqlite3_complete               sqlite3_api->complete
   1.255 +#define sqlite3_complete16             sqlite3_api->complete16
   1.256 +#define sqlite3_create_collation       sqlite3_api->create_collation
   1.257 +#define sqlite3_create_collation16     sqlite3_api->create_collation16
   1.258 +#define sqlite3_create_function        sqlite3_api->create_function
   1.259 +#define sqlite3_create_function16      sqlite3_api->create_function16
   1.260 +#define sqlite3_create_module          sqlite3_api->create_module
   1.261 +#define sqlite3_create_module_v2       sqlite3_api->create_module_v2
   1.262 +#define sqlite3_data_count             sqlite3_api->data_count
   1.263 +#define sqlite3_db_handle              sqlite3_api->db_handle
   1.264 +#define sqlite3_declare_vtab           sqlite3_api->declare_vtab
   1.265 +#define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache
   1.266 +#define sqlite3_errcode                sqlite3_api->errcode
   1.267 +#define sqlite3_errmsg                 sqlite3_api->errmsg
   1.268 +#define sqlite3_errmsg16               sqlite3_api->errmsg16
   1.269 +#define sqlite3_exec                   sqlite3_api->exec
   1.270 +#define sqlite3_expired                sqlite3_api->expired
   1.271 +#define sqlite3_finalize               sqlite3_api->finalize
   1.272 +#define sqlite3_free                   sqlite3_api->free
   1.273 +#define sqlite3_free_table             sqlite3_api->free_table
   1.274 +#define sqlite3_get_autocommit         sqlite3_api->get_autocommit
   1.275 +#define sqlite3_get_auxdata            sqlite3_api->get_auxdata
   1.276 +#define sqlite3_get_table              sqlite3_api->get_table
   1.277 +#define sqlite3_global_recover         sqlite3_api->global_recover
   1.278 +#define sqlite3_interrupt              sqlite3_api->interruptx
   1.279 +#define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid
   1.280 +#define sqlite3_libversion             sqlite3_api->libversion
   1.281 +#define sqlite3_libversion_number      sqlite3_api->libversion_number
   1.282 +#define sqlite3_malloc                 sqlite3_api->malloc
   1.283 +#define sqlite3_mprintf                sqlite3_api->mprintf
   1.284 +#define sqlite3_open                   sqlite3_api->open
   1.285 +#define sqlite3_open16                 sqlite3_api->open16
   1.286 +#define sqlite3_prepare                sqlite3_api->prepare
   1.287 +#define sqlite3_prepare16              sqlite3_api->prepare16
   1.288 +#define sqlite3_prepare_v2             sqlite3_api->prepare_v2
   1.289 +#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
   1.290 +#define sqlite3_profile                sqlite3_api->profile
   1.291 +#define sqlite3_progress_handler       sqlite3_api->progress_handler
   1.292 +#define sqlite3_realloc                sqlite3_api->realloc
   1.293 +#define sqlite3_reset                  sqlite3_api->reset
   1.294 +#define sqlite3_result_blob            sqlite3_api->result_blob
   1.295 +#define sqlite3_result_double          sqlite3_api->result_double
   1.296 +#define sqlite3_result_error           sqlite3_api->result_error
   1.297 +#define sqlite3_result_error16         sqlite3_api->result_error16
   1.298 +#define sqlite3_result_int             sqlite3_api->result_int
   1.299 +#define sqlite3_result_int64           sqlite3_api->result_int64
   1.300 +#define sqlite3_result_null            sqlite3_api->result_null
   1.301 +#define sqlite3_result_text            sqlite3_api->result_text
   1.302 +#define sqlite3_result_text16          sqlite3_api->result_text16
   1.303 +#define sqlite3_result_text16be        sqlite3_api->result_text16be
   1.304 +#define sqlite3_result_text16le        sqlite3_api->result_text16le
   1.305 +#define sqlite3_result_value           sqlite3_api->result_value
   1.306 +#define sqlite3_rollback_hook          sqlite3_api->rollback_hook
   1.307 +#define sqlite3_set_authorizer         sqlite3_api->set_authorizer
   1.308 +#define sqlite3_set_auxdata            sqlite3_api->set_auxdata
   1.309 +#define sqlite3_snprintf               sqlite3_api->snprintf
   1.310 +#define sqlite3_step                   sqlite3_api->step
   1.311 +#define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata
   1.312 +#define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup
   1.313 +#define sqlite3_total_changes          sqlite3_api->total_changes
   1.314 +#define sqlite3_trace                  sqlite3_api->trace
   1.315 +#define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings
   1.316 +#define sqlite3_update_hook            sqlite3_api->update_hook
   1.317 +#define sqlite3_user_data              sqlite3_api->user_data
   1.318 +#define sqlite3_value_blob             sqlite3_api->value_blob
   1.319 +#define sqlite3_value_bytes            sqlite3_api->value_bytes
   1.320 +#define sqlite3_value_bytes16          sqlite3_api->value_bytes16
   1.321 +#define sqlite3_value_double           sqlite3_api->value_double
   1.322 +#define sqlite3_value_int              sqlite3_api->value_int
   1.323 +#define sqlite3_value_int64            sqlite3_api->value_int64
   1.324 +#define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type
   1.325 +#define sqlite3_value_text             sqlite3_api->value_text
   1.326 +#define sqlite3_value_text16           sqlite3_api->value_text16
   1.327 +#define sqlite3_value_text16be         sqlite3_api->value_text16be
   1.328 +#define sqlite3_value_text16le         sqlite3_api->value_text16le
   1.329 +#define sqlite3_value_type             sqlite3_api->value_type
   1.330 +#define sqlite3_vmprintf               sqlite3_api->vmprintf
   1.331 +#define sqlite3_overload_function      sqlite3_api->overload_function
   1.332 +#define sqlite3_prepare_v2             sqlite3_api->prepare_v2
   1.333 +#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
   1.334 +#define sqlite3_clear_bindings         sqlite3_api->clear_bindings
   1.335 +#define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob
   1.336 +#define sqlite3_blob_bytes             sqlite3_api->blob_bytes
   1.337 +#define sqlite3_blob_close             sqlite3_api->blob_close
   1.338 +#define sqlite3_blob_open              sqlite3_api->blob_open
   1.339 +#define sqlite3_blob_read              sqlite3_api->blob_read
   1.340 +#define sqlite3_blob_write             sqlite3_api->blob_write
   1.341 +#define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2
   1.342 +#define sqlite3_file_control           sqlite3_api->file_control
   1.343 +#define sqlite3_memory_highwater       sqlite3_api->memory_highwater
   1.344 +#define sqlite3_memory_used            sqlite3_api->memory_used
   1.345 +#define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc
   1.346 +#define sqlite3_mutex_enter            sqlite3_api->mutex_enter
   1.347 +#define sqlite3_mutex_free             sqlite3_api->mutex_free
   1.348 +#define sqlite3_mutex_leave            sqlite3_api->mutex_leave
   1.349 +#define sqlite3_mutex_try              sqlite3_api->mutex_try
   1.350 +#define sqlite3_open_v2                sqlite3_api->open_v2
   1.351 +#define sqlite3_release_memory         sqlite3_api->release_memory
   1.352 +#define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem
   1.353 +#define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig
   1.354 +#define sqlite3_sleep                  sqlite3_api->sleep
   1.355 +#define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit
   1.356 +#define sqlite3_vfs_find               sqlite3_api->vfs_find
   1.357 +#define sqlite3_vfs_register           sqlite3_api->vfs_register
   1.358 +#define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister
   1.359 +#define sqlite3_threadsafe             sqlite3_api->xthreadsafe
   1.360 +#define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob
   1.361 +#define sqlite3_result_error_code      sqlite3_api->result_error_code
   1.362 +#define sqlite3_test_control           sqlite3_api->test_control
   1.363 +#define sqlite3_randomness             sqlite3_api->randomness
   1.364 +#define sqlite3_context_db_handle      sqlite3_api->context_db_handle
   1.365 +#define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes
   1.366 +#define sqlite3_limit                  sqlite3_api->limit
   1.367 +#define sqlite3_next_stmt              sqlite3_api->next_stmt
   1.368 +#define sqlite3_sql                    sqlite3_api->sql
   1.369 +#define sqlite3_status                 sqlite3_api->status
   1.370 +#endif /* SQLITE_CORE */
   1.371 +
   1.372 +#define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api = 0;
   1.373 +#define SQLITE_EXTENSION_INIT2(v)  sqlite3_api = v;
   1.374 +
   1.375 +#endif /* _SQLITE3EXT_H_ */