Back to index

php5  5.3.10
sqlite3ext.h
Go to the documentation of this file.
00001 /*
00002 ** 2006 June 7
00003 **
00004 ** The author disclaims copyright to this source code.  In place of
00005 ** a legal notice, here is a blessing:
00006 **
00007 **    May you do good and not evil.
00008 **    May you find forgiveness for yourself and forgive others.
00009 **    May you share freely, never taking more than you give.
00010 **
00011 *************************************************************************
00012 ** This header file defines the SQLite interface for use by
00013 ** shared libraries that want to be imported as extensions into
00014 ** an SQLite instance.  Shared libraries that intend to be loaded
00015 ** as extensions by SQLite should #include this file instead of 
00016 ** sqlite3.h.
00017 */
00018 #ifndef _SQLITE3EXT_H_
00019 #define _SQLITE3EXT_H_
00020 #include "sqlite3.h"
00021 
00022 typedef struct sqlite3_api_routines sqlite3_api_routines;
00023 
00024 /*
00025 ** The following structure holds pointers to all of the SQLite API
00026 ** routines.
00027 **
00028 ** WARNING:  In order to maintain backwards compatibility, add new
00029 ** interfaces to the end of this structure only.  If you insert new
00030 ** interfaces in the middle of this structure, then older different
00031 ** versions of SQLite will not be able to load each others' shared
00032 ** libraries!
00033 */
00034 struct sqlite3_api_routines {
00035   void * (*aggregate_context)(sqlite3_context*,int nBytes);
00036   int  (*aggregate_count)(sqlite3_context*);
00037   int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));
00038   int  (*bind_double)(sqlite3_stmt*,int,double);
00039   int  (*bind_int)(sqlite3_stmt*,int,int);
00040   int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);
00041   int  (*bind_null)(sqlite3_stmt*,int);
00042   int  (*bind_parameter_count)(sqlite3_stmt*);
00043   int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);
00044   const char * (*bind_parameter_name)(sqlite3_stmt*,int);
00045   int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));
00046   int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));
00047   int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);
00048   int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);
00049   int  (*busy_timeout)(sqlite3*,int ms);
00050   int  (*changes)(sqlite3*);
00051   int  (*close)(sqlite3*);
00052   int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const char*));
00053   int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,int eTextRep,const void*));
00054   const void * (*column_blob)(sqlite3_stmt*,int iCol);
00055   int  (*column_bytes)(sqlite3_stmt*,int iCol);
00056   int  (*column_bytes16)(sqlite3_stmt*,int iCol);
00057   int  (*column_count)(sqlite3_stmt*pStmt);
00058   const char * (*column_database_name)(sqlite3_stmt*,int);
00059   const void * (*column_database_name16)(sqlite3_stmt*,int);
00060   const char * (*column_decltype)(sqlite3_stmt*,int i);
00061   const void * (*column_decltype16)(sqlite3_stmt*,int);
00062   double  (*column_double)(sqlite3_stmt*,int iCol);
00063   int  (*column_int)(sqlite3_stmt*,int iCol);
00064   sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);
00065   const char * (*column_name)(sqlite3_stmt*,int);
00066   const void * (*column_name16)(sqlite3_stmt*,int);
00067   const char * (*column_origin_name)(sqlite3_stmt*,int);
00068   const void * (*column_origin_name16)(sqlite3_stmt*,int);
00069   const char * (*column_table_name)(sqlite3_stmt*,int);
00070   const void * (*column_table_name16)(sqlite3_stmt*,int);
00071   const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);
00072   const void * (*column_text16)(sqlite3_stmt*,int iCol);
00073   int  (*column_type)(sqlite3_stmt*,int iCol);
00074   sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);
00075   void * (*commit_hook)(sqlite3*,int(*)(void*),void*);
00076   int  (*complete)(const char*sql);
00077   int  (*complete16)(const void*sql);
00078   int  (*create_collation)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*));
00079   int  (*create_collation16)(sqlite3*,const void*,int,void*,int(*)(void*,int,const void*,int,const void*));
00080   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*));
00081   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*));
00082   int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);
00083   int  (*data_count)(sqlite3_stmt*pStmt);
00084   sqlite3 * (*db_handle)(sqlite3_stmt*);
00085   int (*declare_vtab)(sqlite3*,const char*);
00086   int  (*enable_shared_cache)(int);
00087   int  (*errcode)(sqlite3*db);
00088   const char * (*errmsg)(sqlite3*);
00089   const void * (*errmsg16)(sqlite3*);
00090   int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);
00091   int  (*expired)(sqlite3_stmt*);
00092   int  (*finalize)(sqlite3_stmt*pStmt);
00093   void  (*free)(void*);
00094   void  (*free_table)(char**result);
00095   int  (*get_autocommit)(sqlite3*);
00096   void * (*get_auxdata)(sqlite3_context*,int);
00097   int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);
00098   int  (*global_recover)(void);
00099   void  (*interruptx)(sqlite3*);
00100   sqlite_int64  (*last_insert_rowid)(sqlite3*);
00101   const char * (*libversion)(void);
00102   int  (*libversion_number)(void);
00103   void *(*malloc)(int);
00104   char * (*mprintf)(const char*,...);
00105   int  (*open)(const char*,sqlite3**);
00106   int  (*open16)(const void*,sqlite3**);
00107   int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
00108   int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
00109   void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);
00110   void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);
00111   void *(*realloc)(void*,int);
00112   int  (*reset)(sqlite3_stmt*pStmt);
00113   void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));
00114   void  (*result_double)(sqlite3_context*,double);
00115   void  (*result_error)(sqlite3_context*,const char*,int);
00116   void  (*result_error16)(sqlite3_context*,const void*,int);
00117   void  (*result_int)(sqlite3_context*,int);
00118   void  (*result_int64)(sqlite3_context*,sqlite_int64);
00119   void  (*result_null)(sqlite3_context*);
00120   void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));
00121   void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));
00122   void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));
00123   void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));
00124   void  (*result_value)(sqlite3_context*,sqlite3_value*);
00125   void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);
00126   int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,const char*,const char*),void*);
00127   void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));
00128   char * (*snprintf)(int,char*,const char*,...);
00129   int  (*step)(sqlite3_stmt*);
00130   int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,char const**,char const**,int*,int*,int*);
00131   void  (*thread_cleanup)(void);
00132   int  (*total_changes)(sqlite3*);
00133   void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);
00134   int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);
00135   void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,sqlite_int64),void*);
00136   void * (*user_data)(sqlite3_context*);
00137   const void * (*value_blob)(sqlite3_value*);
00138   int  (*value_bytes)(sqlite3_value*);
00139   int  (*value_bytes16)(sqlite3_value*);
00140   double  (*value_double)(sqlite3_value*);
00141   int  (*value_int)(sqlite3_value*);
00142   sqlite_int64  (*value_int64)(sqlite3_value*);
00143   int  (*value_numeric_type)(sqlite3_value*);
00144   const unsigned char * (*value_text)(sqlite3_value*);
00145   const void * (*value_text16)(sqlite3_value*);
00146   const void * (*value_text16be)(sqlite3_value*);
00147   const void * (*value_text16le)(sqlite3_value*);
00148   int  (*value_type)(sqlite3_value*);
00149   char *(*vmprintf)(const char*,va_list);
00150   /* Added ??? */
00151   int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);
00152   /* Added by 3.3.13 */
00153   int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);
00154   int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);
00155   int (*clear_bindings)(sqlite3_stmt*);
00156   /* Added by 3.4.1 */
00157   int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,void (*xDestroy)(void *));
00158   /* Added by 3.5.0 */
00159   int (*bind_zeroblob)(sqlite3_stmt*,int,int);
00160   int (*blob_bytes)(sqlite3_blob*);
00161   int (*blob_close)(sqlite3_blob*);
00162   int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,int,sqlite3_blob**);
00163   int (*blob_read)(sqlite3_blob*,void*,int,int);
00164   int (*blob_write)(sqlite3_blob*,const void*,int,int);
00165   int (*create_collation_v2)(sqlite3*,const char*,int,void*,int(*)(void*,int,const void*,int,const void*),void(*)(void*));
00166   int (*file_control)(sqlite3*,const char*,int,void*);
00167   sqlite3_int64 (*memory_highwater)(int);
00168   sqlite3_int64 (*memory_used)(void);
00169   sqlite3_mutex *(*mutex_alloc)(int);
00170   void (*mutex_enter)(sqlite3_mutex*);
00171   void (*mutex_free)(sqlite3_mutex*);
00172   void (*mutex_leave)(sqlite3_mutex*);
00173   int (*mutex_try)(sqlite3_mutex*);
00174   int (*open_v2)(const char*,sqlite3**,int,const char*);
00175   int (*release_memory)(int);
00176   void (*result_error_nomem)(sqlite3_context*);
00177   void (*result_error_toobig)(sqlite3_context*);
00178   int (*sleep)(int);
00179   void (*soft_heap_limit)(int);
00180   sqlite3_vfs *(*vfs_find)(const char*);
00181   int (*vfs_register)(sqlite3_vfs*,int);
00182   int (*vfs_unregister)(sqlite3_vfs*);
00183   int (*xthreadsafe)(void);
00184   void (*result_zeroblob)(sqlite3_context*,int);
00185   void (*result_error_code)(sqlite3_context*,int);
00186   int (*test_control)(int, ...);
00187   void (*randomness)(int,void*);
00188   sqlite3 *(*context_db_handle)(sqlite3_context*);
00189   int (*extended_result_codes)(sqlite3*,int);
00190   int (*limit)(sqlite3*,int,int);
00191   sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);
00192   const char *(*sql)(sqlite3_stmt*);
00193   int (*status)(int,int*,int*,int);
00194   int (*backup_finish)(sqlite3_backup*);
00195   sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);
00196   int (*backup_pagecount)(sqlite3_backup*);
00197   int (*backup_remaining)(sqlite3_backup*);
00198   int (*backup_step)(sqlite3_backup*,int);
00199   const char *(*compileoption_get)(int);
00200   int (*compileoption_used)(const char*);
00201   int (*create_function_v2)(sqlite3*,const char*,int,int,void*,void (*xFunc)(sqlite3_context*,int,sqlite3_value**),void (*xStep)(sqlite3_context*,int,sqlite3_value**),void (*xFinal)(sqlite3_context*),void(*xDestroy)(void*));
00202   int (*db_config)(sqlite3*,int,...);
00203   sqlite3_mutex *(*db_mutex)(sqlite3*);
00204   int (*db_status)(sqlite3*,int,int*,int*,int);
00205   int (*extended_errcode)(sqlite3*);
00206   void (*log)(int,const char*,...);
00207   sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64);
00208   const char *(*sourceid)(void);
00209   int (*stmt_status)(sqlite3_stmt*,int,int);
00210   int (*strnicmp)(const char*,const char*,int);
00211   int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);
00212   int (*wal_autocheckpoint)(sqlite3*,int);
00213   int (*wal_checkpoint)(sqlite3*,const char*);
00214   void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);
00215 };
00216 
00217 /*
00218 ** The following macros redefine the API routines so that they are
00219 ** redirected throught the global sqlite3_api structure.
00220 **
00221 ** This header file is also used by the loadext.c source file
00222 ** (part of the main SQLite library - not an extension) so that
00223 ** it can get access to the sqlite3_api_routines structure
00224 ** definition.  But the main library does not want to redefine
00225 ** the API.  So the redefinition macros are only valid if the
00226 ** SQLITE_CORE macros is undefined.
00227 */
00228 #ifndef SQLITE_CORE
00229 #define sqlite3_aggregate_context      sqlite3_api->aggregate_context
00230 #ifndef SQLITE_OMIT_DEPRECATED
00231 #define sqlite3_aggregate_count        sqlite3_api->aggregate_count
00232 #endif
00233 #define sqlite3_bind_blob              sqlite3_api->bind_blob
00234 #define sqlite3_bind_double            sqlite3_api->bind_double
00235 #define sqlite3_bind_int               sqlite3_api->bind_int
00236 #define sqlite3_bind_int64             sqlite3_api->bind_int64
00237 #define sqlite3_bind_null              sqlite3_api->bind_null
00238 #define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count
00239 #define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index
00240 #define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name
00241 #define sqlite3_bind_text              sqlite3_api->bind_text
00242 #define sqlite3_bind_text16            sqlite3_api->bind_text16
00243 #define sqlite3_bind_value             sqlite3_api->bind_value
00244 #define sqlite3_busy_handler           sqlite3_api->busy_handler
00245 #define sqlite3_busy_timeout           sqlite3_api->busy_timeout
00246 #define sqlite3_changes                sqlite3_api->changes
00247 #define sqlite3_close                  sqlite3_api->close
00248 #define sqlite3_collation_needed       sqlite3_api->collation_needed
00249 #define sqlite3_collation_needed16     sqlite3_api->collation_needed16
00250 #define sqlite3_column_blob            sqlite3_api->column_blob
00251 #define sqlite3_column_bytes           sqlite3_api->column_bytes
00252 #define sqlite3_column_bytes16         sqlite3_api->column_bytes16
00253 #define sqlite3_column_count           sqlite3_api->column_count
00254 #define sqlite3_column_database_name   sqlite3_api->column_database_name
00255 #define sqlite3_column_database_name16 sqlite3_api->column_database_name16
00256 #define sqlite3_column_decltype        sqlite3_api->column_decltype
00257 #define sqlite3_column_decltype16      sqlite3_api->column_decltype16
00258 #define sqlite3_column_double          sqlite3_api->column_double
00259 #define sqlite3_column_int             sqlite3_api->column_int
00260 #define sqlite3_column_int64           sqlite3_api->column_int64
00261 #define sqlite3_column_name            sqlite3_api->column_name
00262 #define sqlite3_column_name16          sqlite3_api->column_name16
00263 #define sqlite3_column_origin_name     sqlite3_api->column_origin_name
00264 #define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16
00265 #define sqlite3_column_table_name      sqlite3_api->column_table_name
00266 #define sqlite3_column_table_name16    sqlite3_api->column_table_name16
00267 #define sqlite3_column_text            sqlite3_api->column_text
00268 #define sqlite3_column_text16          sqlite3_api->column_text16
00269 #define sqlite3_column_type            sqlite3_api->column_type
00270 #define sqlite3_column_value           sqlite3_api->column_value
00271 #define sqlite3_commit_hook            sqlite3_api->commit_hook
00272 #define sqlite3_complete               sqlite3_api->complete
00273 #define sqlite3_complete16             sqlite3_api->complete16
00274 #define sqlite3_create_collation       sqlite3_api->create_collation
00275 #define sqlite3_create_collation16     sqlite3_api->create_collation16
00276 #define sqlite3_create_function        sqlite3_api->create_function
00277 #define sqlite3_create_function16      sqlite3_api->create_function16
00278 #define sqlite3_create_module          sqlite3_api->create_module
00279 #define sqlite3_create_module_v2       sqlite3_api->create_module_v2
00280 #define sqlite3_data_count             sqlite3_api->data_count
00281 #define sqlite3_db_handle              sqlite3_api->db_handle
00282 #define sqlite3_declare_vtab           sqlite3_api->declare_vtab
00283 #define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache
00284 #define sqlite3_errcode                sqlite3_api->errcode
00285 #define sqlite3_errmsg                 sqlite3_api->errmsg
00286 #define sqlite3_errmsg16               sqlite3_api->errmsg16
00287 #define sqlite3_exec                   sqlite3_api->exec
00288 #ifndef SQLITE_OMIT_DEPRECATED
00289 #define sqlite3_expired                sqlite3_api->expired
00290 #endif
00291 #define sqlite3_finalize               sqlite3_api->finalize
00292 #define sqlite3_free                   sqlite3_api->free
00293 #define sqlite3_free_table             sqlite3_api->free_table
00294 #define sqlite3_get_autocommit         sqlite3_api->get_autocommit
00295 #define sqlite3_get_auxdata            sqlite3_api->get_auxdata
00296 #define sqlite3_get_table              sqlite3_api->get_table
00297 #ifndef SQLITE_OMIT_DEPRECATED
00298 #define sqlite3_global_recover         sqlite3_api->global_recover
00299 #endif
00300 #define sqlite3_interrupt              sqlite3_api->interruptx
00301 #define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid
00302 #define sqlite3_libversion             sqlite3_api->libversion
00303 #define sqlite3_libversion_number      sqlite3_api->libversion_number
00304 #define sqlite3_malloc                 sqlite3_api->malloc
00305 #define sqlite3_mprintf                sqlite3_api->mprintf
00306 #define sqlite3_open                   sqlite3_api->open
00307 #define sqlite3_open16                 sqlite3_api->open16
00308 #define sqlite3_prepare                sqlite3_api->prepare
00309 #define sqlite3_prepare16              sqlite3_api->prepare16
00310 #define sqlite3_prepare_v2             sqlite3_api->prepare_v2
00311 #define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
00312 #define sqlite3_profile                sqlite3_api->profile
00313 #define sqlite3_progress_handler       sqlite3_api->progress_handler
00314 #define sqlite3_realloc                sqlite3_api->realloc
00315 #define sqlite3_reset                  sqlite3_api->reset
00316 #define sqlite3_result_blob            sqlite3_api->result_blob
00317 #define sqlite3_result_double          sqlite3_api->result_double
00318 #define sqlite3_result_error           sqlite3_api->result_error
00319 #define sqlite3_result_error16         sqlite3_api->result_error16
00320 #define sqlite3_result_int             sqlite3_api->result_int
00321 #define sqlite3_result_int64           sqlite3_api->result_int64
00322 #define sqlite3_result_null            sqlite3_api->result_null
00323 #define sqlite3_result_text            sqlite3_api->result_text
00324 #define sqlite3_result_text16          sqlite3_api->result_text16
00325 #define sqlite3_result_text16be        sqlite3_api->result_text16be
00326 #define sqlite3_result_text16le        sqlite3_api->result_text16le
00327 #define sqlite3_result_value           sqlite3_api->result_value
00328 #define sqlite3_rollback_hook          sqlite3_api->rollback_hook
00329 #define sqlite3_set_authorizer         sqlite3_api->set_authorizer
00330 #define sqlite3_set_auxdata            sqlite3_api->set_auxdata
00331 #define sqlite3_snprintf               sqlite3_api->snprintf
00332 #define sqlite3_step                   sqlite3_api->step
00333 #define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata
00334 #define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup
00335 #define sqlite3_total_changes          sqlite3_api->total_changes
00336 #define sqlite3_trace                  sqlite3_api->trace
00337 #ifndef SQLITE_OMIT_DEPRECATED
00338 #define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings
00339 #endif
00340 #define sqlite3_update_hook            sqlite3_api->update_hook
00341 #define sqlite3_user_data              sqlite3_api->user_data
00342 #define sqlite3_value_blob             sqlite3_api->value_blob
00343 #define sqlite3_value_bytes            sqlite3_api->value_bytes
00344 #define sqlite3_value_bytes16          sqlite3_api->value_bytes16
00345 #define sqlite3_value_double           sqlite3_api->value_double
00346 #define sqlite3_value_int              sqlite3_api->value_int
00347 #define sqlite3_value_int64            sqlite3_api->value_int64
00348 #define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type
00349 #define sqlite3_value_text             sqlite3_api->value_text
00350 #define sqlite3_value_text16           sqlite3_api->value_text16
00351 #define sqlite3_value_text16be         sqlite3_api->value_text16be
00352 #define sqlite3_value_text16le         sqlite3_api->value_text16le
00353 #define sqlite3_value_type             sqlite3_api->value_type
00354 #define sqlite3_vmprintf               sqlite3_api->vmprintf
00355 #define sqlite3_overload_function      sqlite3_api->overload_function
00356 #define sqlite3_prepare_v2             sqlite3_api->prepare_v2
00357 #define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2
00358 #define sqlite3_clear_bindings         sqlite3_api->clear_bindings
00359 #define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob
00360 #define sqlite3_blob_bytes             sqlite3_api->blob_bytes
00361 #define sqlite3_blob_close             sqlite3_api->blob_close
00362 #define sqlite3_blob_open              sqlite3_api->blob_open
00363 #define sqlite3_blob_read              sqlite3_api->blob_read
00364 #define sqlite3_blob_write             sqlite3_api->blob_write
00365 #define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2
00366 #define sqlite3_file_control           sqlite3_api->file_control
00367 #define sqlite3_memory_highwater       sqlite3_api->memory_highwater
00368 #define sqlite3_memory_used            sqlite3_api->memory_used
00369 #define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc
00370 #define sqlite3_mutex_enter            sqlite3_api->mutex_enter
00371 #define sqlite3_mutex_free             sqlite3_api->mutex_free
00372 #define sqlite3_mutex_leave            sqlite3_api->mutex_leave
00373 #define sqlite3_mutex_try              sqlite3_api->mutex_try
00374 #define sqlite3_open_v2                sqlite3_api->open_v2
00375 #define sqlite3_release_memory         sqlite3_api->release_memory
00376 #define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem
00377 #define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig
00378 #define sqlite3_sleep                  sqlite3_api->sleep
00379 #define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit
00380 #define sqlite3_vfs_find               sqlite3_api->vfs_find
00381 #define sqlite3_vfs_register           sqlite3_api->vfs_register
00382 #define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister
00383 #define sqlite3_threadsafe             sqlite3_api->xthreadsafe
00384 #define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob
00385 #define sqlite3_result_error_code      sqlite3_api->result_error_code
00386 #define sqlite3_test_control           sqlite3_api->test_control
00387 #define sqlite3_randomness             sqlite3_api->randomness
00388 #define sqlite3_context_db_handle      sqlite3_api->context_db_handle
00389 #define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes
00390 #define sqlite3_limit                  sqlite3_api->limit
00391 #define sqlite3_next_stmt              sqlite3_api->next_stmt
00392 #define sqlite3_sql                    sqlite3_api->sql
00393 #define sqlite3_status                 sqlite3_api->status
00394 #define sqlite3_backup_finish          sqlite3_api->backup_finish
00395 #define sqlite3_backup_init            sqlite3_api->backup_init
00396 #define sqlite3_backup_pagecount       sqlite3_api->backup_pagecount
00397 #define sqlite3_backup_remaining       sqlite3_api->backup_remaining
00398 #define sqlite3_backup_step            sqlite3_api->backup_step
00399 #define sqlite3_compileoption_get      sqlite3_api->compileoption_get
00400 #define sqlite3_compileoption_used     sqlite3_api->compileoption_used
00401 #define sqlite3_create_function_v2     sqlite3_api->create_function_v2
00402 #define sqlite3_db_config              sqlite3_api->db_config
00403 #define sqlite3_db_mutex               sqlite3_api->db_mutex
00404 #define sqlite3_db_status              sqlite3_api->db_status
00405 #define sqlite3_extended_errcode       sqlite3_api->extended_errcode
00406 #define sqlite3_log                    sqlite3_api->log
00407 #define sqlite3_soft_heap_limit64      sqlite3_api->soft_heap_limit64
00408 #define sqlite3_sourceid               sqlite3_api->sourceid
00409 #define sqlite3_stmt_status            sqlite3_api->stmt_status
00410 #define sqlite3_strnicmp               sqlite3_api->strnicmp
00411 #define sqlite3_unlock_notify          sqlite3_api->unlock_notify
00412 #define sqlite3_wal_autocheckpoint     sqlite3_api->wal_autocheckpoint
00413 #define sqlite3_wal_checkpoint         sqlite3_api->wal_checkpoint
00414 #define sqlite3_wal_hook               sqlite3_api->wal_hook
00415 #endif /* SQLITE_CORE */
00416 
00417 #define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api = 0;
00418 #define SQLITE_EXTENSION_INIT2(v)  sqlite3_api = v;
00419 
00420 #endif /* _SQLITE3EXT_H_ */