andre@0: /* andre@0: ** 2006 June 7 andre@0: ** andre@0: ** The author disclaims copyright to this source code. In place of andre@0: ** a legal notice, here is a blessing: andre@0: ** andre@0: ** May you do good and not evil. andre@0: ** May you find forgiveness for yourself and forgive others. andre@0: ** May you share freely, never taking more than you give. andre@0: ** andre@0: ************************************************************************* andre@0: ** This header file defines the SQLite interface for use by andre@0: ** shared libraries that want to be imported as extensions into andre@0: ** an SQLite instance. Shared libraries that intend to be loaded andre@0: ** as extensions by SQLite should #include this file instead of andre@0: ** sqlite3.h. andre@0: */ andre@0: #ifndef _SQLITE3EXT_H_ andre@0: #define _SQLITE3EXT_H_ andre@0: #include "sqlite3.h" andre@0: andre@0: typedef struct sqlite3_api_routines sqlite3_api_routines; andre@0: andre@0: /* andre@0: ** The following structure holds pointers to all of the SQLite API andre@0: ** routines. andre@0: ** andre@0: ** WARNING: In order to maintain backwards compatibility, add new andre@0: ** interfaces to the end of this structure only. If you insert new andre@0: ** interfaces in the middle of this structure, then older different andre@0: ** versions of SQLite will not be able to load each others' shared andre@0: ** libraries! andre@0: */ andre@0: struct sqlite3_api_routines { andre@0: void * (*aggregate_context)(sqlite3_context*,int nBytes); andre@0: int (*aggregate_count)(sqlite3_context*); andre@0: int (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*)); andre@0: int (*bind_double)(sqlite3_stmt*,int,double); andre@0: int (*bind_int)(sqlite3_stmt*,int,int); andre@0: int (*bind_int64)(sqlite3_stmt*,int,sqlite_int64); andre@0: int (*bind_null)(sqlite3_stmt*,int); andre@0: int (*bind_parameter_count)(sqlite3_stmt*); andre@0: int (*bind_parameter_index)(sqlite3_stmt*,const char*zName); andre@0: const char * (*bind_parameter_name)(sqlite3_stmt*,int); andre@0: int (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*)); andre@0: int (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*)); andre@0: int (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*); andre@0: int (*busy_handler)(sqlite3*,int(*)(void*,int),void*); andre@0: int (*busy_timeout)(sqlite3*,int ms); andre@0: int (*changes)(sqlite3*); andre@0: int (*close)(sqlite3*); andre@0: int (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*, andre@0: int eTextRep,const char*)); andre@0: int (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*, andre@0: int eTextRep,const void*)); andre@0: const void * (*column_blob)(sqlite3_stmt*,int iCol); andre@0: int (*column_bytes)(sqlite3_stmt*,int iCol); andre@0: int (*column_bytes16)(sqlite3_stmt*,int iCol); andre@0: int (*column_count)(sqlite3_stmt*pStmt); andre@0: const char * (*column_database_name)(sqlite3_stmt*,int); andre@0: const void * (*column_database_name16)(sqlite3_stmt*,int); andre@0: const char * (*column_decltype)(sqlite3_stmt*,int i); andre@0: const void * (*column_decltype16)(sqlite3_stmt*,int); andre@0: double (*column_double)(sqlite3_stmt*,int iCol); andre@0: int (*column_int)(sqlite3_stmt*,int iCol); andre@0: sqlite_int64 (*column_int64)(sqlite3_stmt*,int iCol); andre@0: const char * (*column_name)(sqlite3_stmt*,int); andre@0: const void * (*column_name16)(sqlite3_stmt*,int); andre@0: const char * (*column_origin_name)(sqlite3_stmt*,int); andre@0: const void * (*column_origin_name16)(sqlite3_stmt*,int); andre@0: const char * (*column_table_name)(sqlite3_stmt*,int); andre@0: const void * (*column_table_name16)(sqlite3_stmt*,int); andre@0: const unsigned char * (*column_text)(sqlite3_stmt*,int iCol); andre@0: const void * (*column_text16)(sqlite3_stmt*,int iCol); andre@0: int (*column_type)(sqlite3_stmt*,int iCol); andre@0: sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol); andre@0: void * (*commit_hook)(sqlite3*,int(*)(void*),void*); andre@0: int (*complete)(const char*sql); andre@0: int (*complete16)(const void*sql); andre@0: int (*create_collation)(sqlite3*,const char*,int,void*, andre@0: int(*)(void*,int,const void*,int,const void*)); andre@0: int (*create_collation16)(sqlite3*,const void*,int,void*, andre@0: int(*)(void*,int,const void*,int,const void*)); andre@0: int (*create_function)(sqlite3*,const char*,int,int,void*, andre@0: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xStep)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xFinal)(sqlite3_context*)); andre@0: int (*create_function16)(sqlite3*,const void*,int,int,void*, andre@0: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xStep)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xFinal)(sqlite3_context*)); andre@0: int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*); andre@0: int (*data_count)(sqlite3_stmt*pStmt); andre@0: sqlite3 * (*db_handle)(sqlite3_stmt*); andre@0: int (*declare_vtab)(sqlite3*,const char*); andre@0: int (*enable_shared_cache)(int); andre@0: int (*errcode)(sqlite3*db); andre@0: const char * (*errmsg)(sqlite3*); andre@0: const void * (*errmsg16)(sqlite3*); andre@0: int (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**); andre@0: int (*expired)(sqlite3_stmt*); andre@0: int (*finalize)(sqlite3_stmt*pStmt); andre@0: void (*free)(void*); andre@0: void (*free_table)(char**result); andre@0: int (*get_autocommit)(sqlite3*); andre@0: void * (*get_auxdata)(sqlite3_context*,int); andre@0: int (*get_table)(sqlite3*,const char*,char***,int*,int*,char**); andre@0: int (*global_recover)(void); andre@0: void (*interruptx)(sqlite3*); andre@0: sqlite_int64 (*last_insert_rowid)(sqlite3*); andre@0: const char * (*libversion)(void); andre@0: int (*libversion_number)(void); andre@0: void *(*malloc)(int); andre@0: char * (*mprintf)(const char*,...); andre@0: int (*open)(const char*,sqlite3**); andre@0: int (*open16)(const void*,sqlite3**); andre@0: int (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**); andre@0: int (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**); andre@0: void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*); andre@0: void (*progress_handler)(sqlite3*,int,int(*)(void*),void*); andre@0: void *(*realloc)(void*,int); andre@0: int (*reset)(sqlite3_stmt*pStmt); andre@0: void (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*)); andre@0: void (*result_double)(sqlite3_context*,double); andre@0: void (*result_error)(sqlite3_context*,const char*,int); andre@0: void (*result_error16)(sqlite3_context*,const void*,int); andre@0: void (*result_int)(sqlite3_context*,int); andre@0: void (*result_int64)(sqlite3_context*,sqlite_int64); andre@0: void (*result_null)(sqlite3_context*); andre@0: void (*result_text)(sqlite3_context*,const char*,int,void(*)(void*)); andre@0: void (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*)); andre@0: void (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*)); andre@0: void (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*)); andre@0: void (*result_value)(sqlite3_context*,sqlite3_value*); andre@0: void * (*rollback_hook)(sqlite3*,void(*)(void*),void*); andre@0: int (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*, andre@0: const char*,const char*),void*); andre@0: void (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*)); andre@0: char * (*snprintf)(int,char*,const char*,...); andre@0: int (*step)(sqlite3_stmt*); andre@0: int (*table_column_metadata)(sqlite3*,const char*,const char*,const char*, andre@0: char const**,char const**,int*,int*,int*); andre@0: void (*thread_cleanup)(void); andre@0: int (*total_changes)(sqlite3*); andre@0: void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*); andre@0: int (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*); andre@0: void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*, andre@0: sqlite_int64),void*); andre@0: void * (*user_data)(sqlite3_context*); andre@0: const void * (*value_blob)(sqlite3_value*); andre@0: int (*value_bytes)(sqlite3_value*); andre@0: int (*value_bytes16)(sqlite3_value*); andre@0: double (*value_double)(sqlite3_value*); andre@0: int (*value_int)(sqlite3_value*); andre@0: sqlite_int64 (*value_int64)(sqlite3_value*); andre@0: int (*value_numeric_type)(sqlite3_value*); andre@0: const unsigned char * (*value_text)(sqlite3_value*); andre@0: const void * (*value_text16)(sqlite3_value*); andre@0: const void * (*value_text16be)(sqlite3_value*); andre@0: const void * (*value_text16le)(sqlite3_value*); andre@0: int (*value_type)(sqlite3_value*); andre@0: char *(*vmprintf)(const char*,va_list); andre@0: /* Added ??? */ andre@0: int (*overload_function)(sqlite3*, const char *zFuncName, int nArg); andre@0: /* Added by 3.3.13 */ andre@0: int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**); andre@0: int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**); andre@0: int (*clear_bindings)(sqlite3_stmt*); andre@0: /* Added by 3.4.1 */ andre@0: int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*, andre@0: void (*xDestroy)(void *)); andre@0: /* Added by 3.5.0 */ andre@0: int (*bind_zeroblob)(sqlite3_stmt*,int,int); andre@0: int (*blob_bytes)(sqlite3_blob*); andre@0: int (*blob_close)(sqlite3_blob*); andre@0: int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64, andre@0: int,sqlite3_blob**); andre@0: int (*blob_read)(sqlite3_blob*,void*,int,int); andre@0: int (*blob_write)(sqlite3_blob*,const void*,int,int); andre@0: int (*create_collation_v2)(sqlite3*,const char*,int,void*, andre@0: int(*)(void*,int,const void*,int,const void*), andre@0: void(*)(void*)); andre@0: int (*file_control)(sqlite3*,const char*,int,void*); andre@0: sqlite3_int64 (*memory_highwater)(int); andre@0: sqlite3_int64 (*memory_used)(void); andre@0: sqlite3_mutex *(*mutex_alloc)(int); andre@0: void (*mutex_enter)(sqlite3_mutex*); andre@0: void (*mutex_free)(sqlite3_mutex*); andre@0: void (*mutex_leave)(sqlite3_mutex*); andre@0: int (*mutex_try)(sqlite3_mutex*); andre@0: int (*open_v2)(const char*,sqlite3**,int,const char*); andre@0: int (*release_memory)(int); andre@0: void (*result_error_nomem)(sqlite3_context*); andre@0: void (*result_error_toobig)(sqlite3_context*); andre@0: int (*sleep)(int); andre@0: void (*soft_heap_limit)(int); andre@0: sqlite3_vfs *(*vfs_find)(const char*); andre@0: int (*vfs_register)(sqlite3_vfs*,int); andre@0: int (*vfs_unregister)(sqlite3_vfs*); andre@0: int (*xthreadsafe)(void); andre@0: void (*result_zeroblob)(sqlite3_context*,int); andre@0: void (*result_error_code)(sqlite3_context*,int); andre@0: int (*test_control)(int, ...); andre@0: void (*randomness)(int,void*); andre@0: sqlite3 *(*context_db_handle)(sqlite3_context*); andre@0: int (*extended_result_codes)(sqlite3*,int); andre@0: int (*limit)(sqlite3*,int,int); andre@0: sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*); andre@0: const char *(*sql)(sqlite3_stmt*); andre@0: int (*status)(int,int*,int*,int); andre@0: int (*backup_finish)(sqlite3_backup*); andre@0: sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*); andre@0: int (*backup_pagecount)(sqlite3_backup*); andre@0: int (*backup_remaining)(sqlite3_backup*); andre@0: int (*backup_step)(sqlite3_backup*,int); andre@0: const char *(*compileoption_get)(int); andre@0: int (*compileoption_used)(const char*); andre@0: int (*create_function_v2)(sqlite3*,const char*,int,int,void*, andre@0: void (*xFunc)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xStep)(sqlite3_context*,int,sqlite3_value**), andre@0: void (*xFinal)(sqlite3_context*), andre@0: void(*xDestroy)(void*)); andre@0: int (*db_config)(sqlite3*,int,...); andre@0: sqlite3_mutex *(*db_mutex)(sqlite3*); andre@0: int (*db_status)(sqlite3*,int,int*,int*,int); andre@0: int (*extended_errcode)(sqlite3*); andre@0: void (*log)(int,const char*,...); andre@0: sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64); andre@0: const char *(*sourceid)(void); andre@0: int (*stmt_status)(sqlite3_stmt*,int,int); andre@0: int (*strnicmp)(const char*,const char*,int); andre@0: int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*); andre@0: int (*wal_autocheckpoint)(sqlite3*,int); andre@0: int (*wal_checkpoint)(sqlite3*,const char*); andre@0: void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*); andre@0: int (*blob_reopen)(sqlite3_blob*,sqlite3_int64); andre@0: int (*vtab_config)(sqlite3*,int op,...); andre@0: int (*vtab_on_conflict)(sqlite3*); andre@0: /* Version 3.7.16 and later */ andre@0: int (*close_v2)(sqlite3*); andre@0: const char *(*db_filename)(sqlite3*,const char*); andre@0: int (*db_readonly)(sqlite3*,const char*); andre@0: int (*db_release_memory)(sqlite3*); andre@0: const char *(*errstr)(int); andre@0: int (*stmt_busy)(sqlite3_stmt*); andre@0: int (*stmt_readonly)(sqlite3_stmt*); andre@0: int (*stricmp)(const char*,const char*); andre@0: int (*uri_boolean)(const char*,const char*,int); andre@0: sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64); andre@0: const char *(*uri_parameter)(const char*,const char*); andre@0: char *(*vsnprintf)(int,char*,const char*,va_list); andre@0: int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*); andre@0: }; andre@0: andre@0: /* andre@0: ** The following macros redefine the API routines so that they are andre@0: ** redirected throught the global sqlite3_api structure. andre@0: ** andre@0: ** This header file is also used by the loadext.c source file andre@0: ** (part of the main SQLite library - not an extension) so that andre@0: ** it can get access to the sqlite3_api_routines structure andre@0: ** definition. But the main library does not want to redefine andre@0: ** the API. So the redefinition macros are only valid if the andre@0: ** SQLITE_CORE macros is undefined. andre@0: */ andre@0: #ifndef SQLITE_CORE andre@0: #define sqlite3_aggregate_context sqlite3_api->aggregate_context andre@0: #ifndef SQLITE_OMIT_DEPRECATED andre@0: #define sqlite3_aggregate_count sqlite3_api->aggregate_count andre@0: #endif andre@0: #define sqlite3_bind_blob sqlite3_api->bind_blob andre@0: #define sqlite3_bind_double sqlite3_api->bind_double andre@0: #define sqlite3_bind_int sqlite3_api->bind_int andre@0: #define sqlite3_bind_int64 sqlite3_api->bind_int64 andre@0: #define sqlite3_bind_null sqlite3_api->bind_null andre@0: #define sqlite3_bind_parameter_count sqlite3_api->bind_parameter_count andre@0: #define sqlite3_bind_parameter_index sqlite3_api->bind_parameter_index andre@0: #define sqlite3_bind_parameter_name sqlite3_api->bind_parameter_name andre@0: #define sqlite3_bind_text sqlite3_api->bind_text andre@0: #define sqlite3_bind_text16 sqlite3_api->bind_text16 andre@0: #define sqlite3_bind_value sqlite3_api->bind_value andre@0: #define sqlite3_busy_handler sqlite3_api->busy_handler andre@0: #define sqlite3_busy_timeout sqlite3_api->busy_timeout andre@0: #define sqlite3_changes sqlite3_api->changes andre@0: #define sqlite3_close sqlite3_api->close andre@0: #define sqlite3_collation_needed sqlite3_api->collation_needed andre@0: #define sqlite3_collation_needed16 sqlite3_api->collation_needed16 andre@0: #define sqlite3_column_blob sqlite3_api->column_blob andre@0: #define sqlite3_column_bytes sqlite3_api->column_bytes andre@0: #define sqlite3_column_bytes16 sqlite3_api->column_bytes16 andre@0: #define sqlite3_column_count sqlite3_api->column_count andre@0: #define sqlite3_column_database_name sqlite3_api->column_database_name andre@0: #define sqlite3_column_database_name16 sqlite3_api->column_database_name16 andre@0: #define sqlite3_column_decltype sqlite3_api->column_decltype andre@0: #define sqlite3_column_decltype16 sqlite3_api->column_decltype16 andre@0: #define sqlite3_column_double sqlite3_api->column_double andre@0: #define sqlite3_column_int sqlite3_api->column_int andre@0: #define sqlite3_column_int64 sqlite3_api->column_int64 andre@0: #define sqlite3_column_name sqlite3_api->column_name andre@0: #define sqlite3_column_name16 sqlite3_api->column_name16 andre@0: #define sqlite3_column_origin_name sqlite3_api->column_origin_name andre@0: #define sqlite3_column_origin_name16 sqlite3_api->column_origin_name16 andre@0: #define sqlite3_column_table_name sqlite3_api->column_table_name andre@0: #define sqlite3_column_table_name16 sqlite3_api->column_table_name16 andre@0: #define sqlite3_column_text sqlite3_api->column_text andre@0: #define sqlite3_column_text16 sqlite3_api->column_text16 andre@0: #define sqlite3_column_type sqlite3_api->column_type andre@0: #define sqlite3_column_value sqlite3_api->column_value andre@0: #define sqlite3_commit_hook sqlite3_api->commit_hook andre@0: #define sqlite3_complete sqlite3_api->complete andre@0: #define sqlite3_complete16 sqlite3_api->complete16 andre@0: #define sqlite3_create_collation sqlite3_api->create_collation andre@0: #define sqlite3_create_collation16 sqlite3_api->create_collation16 andre@0: #define sqlite3_create_function sqlite3_api->create_function andre@0: #define sqlite3_create_function16 sqlite3_api->create_function16 andre@0: #define sqlite3_create_module sqlite3_api->create_module andre@0: #define sqlite3_create_module_v2 sqlite3_api->create_module_v2 andre@0: #define sqlite3_data_count sqlite3_api->data_count andre@0: #define sqlite3_db_handle sqlite3_api->db_handle andre@0: #define sqlite3_declare_vtab sqlite3_api->declare_vtab andre@0: #define sqlite3_enable_shared_cache sqlite3_api->enable_shared_cache andre@0: #define sqlite3_errcode sqlite3_api->errcode andre@0: #define sqlite3_errmsg sqlite3_api->errmsg andre@0: #define sqlite3_errmsg16 sqlite3_api->errmsg16 andre@0: #define sqlite3_exec sqlite3_api->exec andre@0: #ifndef SQLITE_OMIT_DEPRECATED andre@0: #define sqlite3_expired sqlite3_api->expired andre@0: #endif andre@0: #define sqlite3_finalize sqlite3_api->finalize andre@0: #define sqlite3_free sqlite3_api->free andre@0: #define sqlite3_free_table sqlite3_api->free_table andre@0: #define sqlite3_get_autocommit sqlite3_api->get_autocommit andre@0: #define sqlite3_get_auxdata sqlite3_api->get_auxdata andre@0: #define sqlite3_get_table sqlite3_api->get_table andre@0: #ifndef SQLITE_OMIT_DEPRECATED andre@0: #define sqlite3_global_recover sqlite3_api->global_recover andre@0: #endif andre@0: #define sqlite3_interrupt sqlite3_api->interruptx andre@0: #define sqlite3_last_insert_rowid sqlite3_api->last_insert_rowid andre@0: #define sqlite3_libversion sqlite3_api->libversion andre@0: #define sqlite3_libversion_number sqlite3_api->libversion_number andre@0: #define sqlite3_malloc sqlite3_api->malloc andre@0: #define sqlite3_mprintf sqlite3_api->mprintf andre@0: #define sqlite3_open sqlite3_api->open andre@0: #define sqlite3_open16 sqlite3_api->open16 andre@0: #define sqlite3_prepare sqlite3_api->prepare andre@0: #define sqlite3_prepare16 sqlite3_api->prepare16 andre@0: #define sqlite3_prepare_v2 sqlite3_api->prepare_v2 andre@0: #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2 andre@0: #define sqlite3_profile sqlite3_api->profile andre@0: #define sqlite3_progress_handler sqlite3_api->progress_handler andre@0: #define sqlite3_realloc sqlite3_api->realloc andre@0: #define sqlite3_reset sqlite3_api->reset andre@0: #define sqlite3_result_blob sqlite3_api->result_blob andre@0: #define sqlite3_result_double sqlite3_api->result_double andre@0: #define sqlite3_result_error sqlite3_api->result_error andre@0: #define sqlite3_result_error16 sqlite3_api->result_error16 andre@0: #define sqlite3_result_int sqlite3_api->result_int andre@0: #define sqlite3_result_int64 sqlite3_api->result_int64 andre@0: #define sqlite3_result_null sqlite3_api->result_null andre@0: #define sqlite3_result_text sqlite3_api->result_text andre@0: #define sqlite3_result_text16 sqlite3_api->result_text16 andre@0: #define sqlite3_result_text16be sqlite3_api->result_text16be andre@0: #define sqlite3_result_text16le sqlite3_api->result_text16le andre@0: #define sqlite3_result_value sqlite3_api->result_value andre@0: #define sqlite3_rollback_hook sqlite3_api->rollback_hook andre@0: #define sqlite3_set_authorizer sqlite3_api->set_authorizer andre@0: #define sqlite3_set_auxdata sqlite3_api->set_auxdata andre@0: #define sqlite3_snprintf sqlite3_api->snprintf andre@0: #define sqlite3_step sqlite3_api->step andre@0: #define sqlite3_table_column_metadata sqlite3_api->table_column_metadata andre@0: #define sqlite3_thread_cleanup sqlite3_api->thread_cleanup andre@0: #define sqlite3_total_changes sqlite3_api->total_changes andre@0: #define sqlite3_trace sqlite3_api->trace andre@0: #ifndef SQLITE_OMIT_DEPRECATED andre@0: #define sqlite3_transfer_bindings sqlite3_api->transfer_bindings andre@0: #endif andre@0: #define sqlite3_update_hook sqlite3_api->update_hook andre@0: #define sqlite3_user_data sqlite3_api->user_data andre@0: #define sqlite3_value_blob sqlite3_api->value_blob andre@0: #define sqlite3_value_bytes sqlite3_api->value_bytes andre@0: #define sqlite3_value_bytes16 sqlite3_api->value_bytes16 andre@0: #define sqlite3_value_double sqlite3_api->value_double andre@0: #define sqlite3_value_int sqlite3_api->value_int andre@0: #define sqlite3_value_int64 sqlite3_api->value_int64 andre@0: #define sqlite3_value_numeric_type sqlite3_api->value_numeric_type andre@0: #define sqlite3_value_text sqlite3_api->value_text andre@0: #define sqlite3_value_text16 sqlite3_api->value_text16 andre@0: #define sqlite3_value_text16be sqlite3_api->value_text16be andre@0: #define sqlite3_value_text16le sqlite3_api->value_text16le andre@0: #define sqlite3_value_type sqlite3_api->value_type andre@0: #define sqlite3_vmprintf sqlite3_api->vmprintf andre@0: #define sqlite3_overload_function sqlite3_api->overload_function andre@0: #define sqlite3_prepare_v2 sqlite3_api->prepare_v2 andre@0: #define sqlite3_prepare16_v2 sqlite3_api->prepare16_v2 andre@0: #define sqlite3_clear_bindings sqlite3_api->clear_bindings andre@0: #define sqlite3_bind_zeroblob sqlite3_api->bind_zeroblob andre@0: #define sqlite3_blob_bytes sqlite3_api->blob_bytes andre@0: #define sqlite3_blob_close sqlite3_api->blob_close andre@0: #define sqlite3_blob_open sqlite3_api->blob_open andre@0: #define sqlite3_blob_read sqlite3_api->blob_read andre@0: #define sqlite3_blob_write sqlite3_api->blob_write andre@0: #define sqlite3_create_collation_v2 sqlite3_api->create_collation_v2 andre@0: #define sqlite3_file_control sqlite3_api->file_control andre@0: #define sqlite3_memory_highwater sqlite3_api->memory_highwater andre@0: #define sqlite3_memory_used sqlite3_api->memory_used andre@0: #define sqlite3_mutex_alloc sqlite3_api->mutex_alloc andre@0: #define sqlite3_mutex_enter sqlite3_api->mutex_enter andre@0: #define sqlite3_mutex_free sqlite3_api->mutex_free andre@0: #define sqlite3_mutex_leave sqlite3_api->mutex_leave andre@0: #define sqlite3_mutex_try sqlite3_api->mutex_try andre@0: #define sqlite3_open_v2 sqlite3_api->open_v2 andre@0: #define sqlite3_release_memory sqlite3_api->release_memory andre@0: #define sqlite3_result_error_nomem sqlite3_api->result_error_nomem andre@0: #define sqlite3_result_error_toobig sqlite3_api->result_error_toobig andre@0: #define sqlite3_sleep sqlite3_api->sleep andre@0: #define sqlite3_soft_heap_limit sqlite3_api->soft_heap_limit andre@0: #define sqlite3_vfs_find sqlite3_api->vfs_find andre@0: #define sqlite3_vfs_register sqlite3_api->vfs_register andre@0: #define sqlite3_vfs_unregister sqlite3_api->vfs_unregister andre@0: #define sqlite3_threadsafe sqlite3_api->xthreadsafe andre@0: #define sqlite3_result_zeroblob sqlite3_api->result_zeroblob andre@0: #define sqlite3_result_error_code sqlite3_api->result_error_code andre@0: #define sqlite3_test_control sqlite3_api->test_control andre@0: #define sqlite3_randomness sqlite3_api->randomness andre@0: #define sqlite3_context_db_handle sqlite3_api->context_db_handle andre@0: #define sqlite3_extended_result_codes sqlite3_api->extended_result_codes andre@0: #define sqlite3_limit sqlite3_api->limit andre@0: #define sqlite3_next_stmt sqlite3_api->next_stmt andre@0: #define sqlite3_sql sqlite3_api->sql andre@0: #define sqlite3_status sqlite3_api->status andre@0: #define sqlite3_backup_finish sqlite3_api->backup_finish andre@0: #define sqlite3_backup_init sqlite3_api->backup_init andre@0: #define sqlite3_backup_pagecount sqlite3_api->backup_pagecount andre@0: #define sqlite3_backup_remaining sqlite3_api->backup_remaining andre@0: #define sqlite3_backup_step sqlite3_api->backup_step andre@0: #define sqlite3_compileoption_get sqlite3_api->compileoption_get andre@0: #define sqlite3_compileoption_used sqlite3_api->compileoption_used andre@0: #define sqlite3_create_function_v2 sqlite3_api->create_function_v2 andre@0: #define sqlite3_db_config sqlite3_api->db_config andre@0: #define sqlite3_db_mutex sqlite3_api->db_mutex andre@0: #define sqlite3_db_status sqlite3_api->db_status andre@0: #define sqlite3_extended_errcode sqlite3_api->extended_errcode andre@0: #define sqlite3_log sqlite3_api->log andre@0: #define sqlite3_soft_heap_limit64 sqlite3_api->soft_heap_limit64 andre@0: #define sqlite3_sourceid sqlite3_api->sourceid andre@0: #define sqlite3_stmt_status sqlite3_api->stmt_status andre@0: #define sqlite3_strnicmp sqlite3_api->strnicmp andre@0: #define sqlite3_unlock_notify sqlite3_api->unlock_notify andre@0: #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint andre@0: #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint andre@0: #define sqlite3_wal_hook sqlite3_api->wal_hook andre@0: #define sqlite3_blob_reopen sqlite3_api->blob_reopen andre@0: #define sqlite3_vtab_config sqlite3_api->vtab_config andre@0: #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict andre@0: /* Version 3.7.16 and later */ andre@0: #define sqlite3_close_v2 sqlite3_api->close_v2 andre@0: #define sqlite3_db_filename sqlite3_api->db_filename andre@0: #define sqlite3_db_readonly sqlite3_api->db_readonly andre@0: #define sqlite3_db_release_memory sqlite3_api->db_release_memory andre@0: #define sqlite3_errstr sqlite3_api->errstr andre@0: #define sqlite3_stmt_busy sqlite3_api->stmt_busy andre@0: #define sqlite3_stmt_readonly sqlite3_api->stmt_readonly andre@0: #define sqlite3_stricmp sqlite3_api->stricmp andre@0: #define sqlite3_uri_boolean sqlite3_api->uri_boolean andre@0: #define sqlite3_uri_int64 sqlite3_api->uri_int64 andre@0: #define sqlite3_uri_parameter sqlite3_api->uri_parameter andre@0: #define sqlite3_uri_vsnprintf sqlite3_api->vsnprintf andre@0: #define sqlite3_wal_checkpoint_v2 sqlite3_api->wal_checkpoint_v2 andre@0: #endif /* SQLITE_CORE */ andre@0: andre@0: #ifndef SQLITE_CORE andre@0: /* This case when the file really is being compiled as a loadable andre@0: ** extension */ andre@0: # define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api=0; andre@0: # define SQLITE_EXTENSION_INIT2(v) sqlite3_api=v; andre@0: # define SQLITE_EXTENSION_INIT3 \ andre@0: extern const sqlite3_api_routines *sqlite3_api; andre@0: #else andre@0: /* This case when the file is being statically linked into the andre@0: ** application */ andre@0: # define SQLITE_EXTENSION_INIT1 /*no-op*/ andre@0: # define SQLITE_EXTENSION_INIT2(v) (void)v; /* unused parameter */ andre@0: # define SQLITE_EXTENSION_INIT3 /*no-op*/ andre@0: #endif andre@0: andre@0: #endif /* _SQLITE3EXT_H_ */