sqlite3ext.h (226031) | sqlite3ext.h (226128) |
---|---|
1/* 2** 2006 June 7 3** 4** The author disclaims copyright to this source code. In place of 5** a legal notice, here is a blessing: 6** 7** May you do good and not evil. 8** May you find forgiveness for yourself and forgive others. 9** May you share freely, never taking more than you give. 10** 11************************************************************************* 12** This header file defines the SQLite interface for use by 13** shared libraries that want to be imported as extensions into 14** an SQLite instance. Shared libraries that intend to be loaded | 1/* 2** 2006 June 7 3** 4** The author disclaims copyright to this source code. In place of 5** a legal notice, here is a blessing: 6** 7** May you do good and not evil. 8** May you find forgiveness for yourself and forgive others. 9** May you share freely, never taking more than you give. 10** 11************************************************************************* 12** This header file defines the SQLite interface for use by 13** shared libraries that want to be imported as extensions into 14** an SQLite instance. Shared libraries that intend to be loaded |
15** as extensions by SQLite should #include this file instead of | 15** as extensions by SQLite should #include this file instead of |
16** sqlite3.h. 17*/ 18#ifndef _SQLITE3EXT_H_ 19#define _SQLITE3EXT_H_ 20#include "sqlite3.h" 21 22typedef struct sqlite3_api_routines sqlite3_api_routines; 23 --- 162 unchanged lines hidden (view full) --- 186 int (*test_control)(int, ...); 187 void (*randomness)(int,void*); 188 sqlite3 *(*context_db_handle)(sqlite3_context*); 189 int (*extended_result_codes)(sqlite3*,int); 190 int (*limit)(sqlite3*,int,int); 191 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*); 192 const char *(*sql)(sqlite3_stmt*); 193 int (*status)(int,int*,int*,int); | 16** sqlite3.h. 17*/ 18#ifndef _SQLITE3EXT_H_ 19#define _SQLITE3EXT_H_ 20#include "sqlite3.h" 21 22typedef struct sqlite3_api_routines sqlite3_api_routines; 23 --- 162 unchanged lines hidden (view full) --- 186 int (*test_control)(int, ...); 187 void (*randomness)(int,void*); 188 sqlite3 *(*context_db_handle)(sqlite3_context*); 189 int (*extended_result_codes)(sqlite3*,int); 190 int (*limit)(sqlite3*,int,int); 191 sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*); 192 const char *(*sql)(sqlite3_stmt*); 193 int (*status)(int,int*,int*,int); |
194 int (*backup_finish)(sqlite3_backup*); 195 sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*); 196 int (*backup_pagecount)(sqlite3_backup*); 197 int (*backup_remaining)(sqlite3_backup*); 198 int (*backup_step)(sqlite3_backup*,int); 199 const char *(*compileoption_get)(int); 200 int (*compileoption_used)(const char*); 201 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*)); 202 int (*db_config)(sqlite3*,int,...); 203 sqlite3_mutex *(*db_mutex)(sqlite3*); 204 int (*db_status)(sqlite3*,int,int*,int*,int); 205 int (*extended_errcode)(sqlite3*); 206 void (*log)(int,const char*,...); 207 sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64); 208 const char *(*sourceid)(void); 209 int (*stmt_status)(sqlite3_stmt*,int,int); 210 int (*strnicmp)(const char*,const char*,int); 211 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*); 212 int (*wal_autocheckpoint)(sqlite3*,int); 213 int (*wal_checkpoint)(sqlite3*,const char*); 214 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*); 215 int (*blob_reopen)(sqlite3_blob*,sqlite3_int64); 216 int (*vtab_config)(sqlite3*,int op,...); 217 int (*vtab_on_conflict)(sqlite3*); |
|
194}; 195 196/* 197** The following macros redefine the API routines so that they are 198** redirected throught the global sqlite3_api structure. 199** 200** This header file is also used by the loadext.c source file 201** (part of the main SQLite library - not an extension) so that --- 163 unchanged lines hidden (view full) --- 365#define sqlite3_test_control sqlite3_api->test_control 366#define sqlite3_randomness sqlite3_api->randomness 367#define sqlite3_context_db_handle sqlite3_api->context_db_handle 368#define sqlite3_extended_result_codes sqlite3_api->extended_result_codes 369#define sqlite3_limit sqlite3_api->limit 370#define sqlite3_next_stmt sqlite3_api->next_stmt 371#define sqlite3_sql sqlite3_api->sql 372#define sqlite3_status sqlite3_api->status | 218}; 219 220/* 221** The following macros redefine the API routines so that they are 222** redirected throught the global sqlite3_api structure. 223** 224** This header file is also used by the loadext.c source file 225** (part of the main SQLite library - not an extension) so that --- 163 unchanged lines hidden (view full) --- 389#define sqlite3_test_control sqlite3_api->test_control 390#define sqlite3_randomness sqlite3_api->randomness 391#define sqlite3_context_db_handle sqlite3_api->context_db_handle 392#define sqlite3_extended_result_codes sqlite3_api->extended_result_codes 393#define sqlite3_limit sqlite3_api->limit 394#define sqlite3_next_stmt sqlite3_api->next_stmt 395#define sqlite3_sql sqlite3_api->sql 396#define sqlite3_status sqlite3_api->status |
397#define sqlite3_backup_finish sqlite3_api->backup_finish 398#define sqlite3_backup_init sqlite3_api->backup_init 399#define sqlite3_backup_pagecount sqlite3_api->backup_pagecount 400#define sqlite3_backup_remaining sqlite3_api->backup_remaining 401#define sqlite3_backup_step sqlite3_api->backup_step 402#define sqlite3_compileoption_get sqlite3_api->compileoption_get 403#define sqlite3_compileoption_used sqlite3_api->compileoption_used 404#define sqlite3_create_function_v2 sqlite3_api->create_function_v2 405#define sqlite3_db_config sqlite3_api->db_config 406#define sqlite3_db_mutex sqlite3_api->db_mutex 407#define sqlite3_db_status sqlite3_api->db_status 408#define sqlite3_extended_errcode sqlite3_api->extended_errcode 409#define sqlite3_log sqlite3_api->log 410#define sqlite3_soft_heap_limit64 sqlite3_api->soft_heap_limit64 411#define sqlite3_sourceid sqlite3_api->sourceid 412#define sqlite3_stmt_status sqlite3_api->stmt_status 413#define sqlite3_strnicmp sqlite3_api->strnicmp 414#define sqlite3_unlock_notify sqlite3_api->unlock_notify 415#define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint 416#define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint 417#define sqlite3_wal_hook sqlite3_api->wal_hook 418#define sqlite3_blob_reopen sqlite3_api->blob_reopen 419#define sqlite3_vtab_config sqlite3_api->vtab_config 420#define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict |
|
373#endif /* SQLITE_CORE */ 374 375#define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api = 0; 376#define SQLITE_EXTENSION_INIT2(v) sqlite3_api = v; 377 378#endif /* _SQLITE3EXT_H_ */ | 421#endif /* SQLITE_CORE */ 422 423#define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api = 0; 424#define SQLITE_EXTENSION_INIT2(v) sqlite3_api = v; 425 426#endif /* _SQLITE3EXT_H_ */ |