SQLite
Check-in [7e10a62d0e]
Not logged in
Overview
SHA1 Hash:7e10a62d0eb1cb2bdafb6752b78a9d368e9f21f5
Date: 2013-02-13 14:04:28
User: drh
Comment:Add recent API additions to the extension mechanism.
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to src/sqlite3ext.h

232 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*); 232 int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*); 233 int (*wal_autocheckpoint)(sqlite3*,int); 233 int (*wal_autocheckpoint)(sqlite3*,int); 234 int (*wal_checkpoint)(sqlite3*,const char*); 234 int (*wal_checkpoint)(sqlite3*,const char*); 235 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*); 235 void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*); 236 int (*blob_reopen)(sqlite3_blob*,sqlite3_int64); 236 int (*blob_reopen)(sqlite3_blob*,sqlite3_int64); 237 int (*vtab_config)(sqlite3*,int op,...); 237 int (*vtab_config)(sqlite3*,int op,...); 238 int (*vtab_on_conflict)(sqlite3*); 238 int (*vtab_on_conflict)(sqlite3*); > 239 /* Version 3.7.16 and later */ > 240 int (*close_v2)(sqlite3*); > 241 const char *(*db_filename)(sqlite3*,const char*); > 242 int (*db_readonly)(sqlite3*,const char*); > 243 int (*db_release_memory)(sqlite3*); > 244 const char *(*errstr)(int); > 245 int (*stmt_busy)(sqlite3_stmt*); > 246 int (*stmt_readonly)(sqlite3_stmt*); > 247 int (*stricmp)(const char*,const char*); > 248 int (*uri_boolean)(const char*,const char*,int); > 249 sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64); > 250 const char *(*uri_parameter)(const char*,const char*); > 251 char *(*vsnprintf)(int,char*,const char*,va_list); > 252 int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*); 239 }; 253 }; 240 254 241 /* 255 /* 242 ** The following macros redefine the API routines so that they are 256 ** The following macros redefine the API routines so that they are 243 ** redirected throught the global sqlite3_api structure. 257 ** redirected throught the global sqlite3_api structure. 244 ** 258 ** 245 ** This header file is also used by the loadext.c source file 259 ** This header file is also used by the loadext.c source file ................................................................................................................................................................................ 435 #define sqlite3_unlock_notify sqlite3_api->unlock_notify 449 #define sqlite3_unlock_notify sqlite3_api->unlock_notify 436 #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint 450 #define sqlite3_wal_autocheckpoint sqlite3_api->wal_autocheckpoint 437 #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint 451 #define sqlite3_wal_checkpoint sqlite3_api->wal_checkpoint 438 #define sqlite3_wal_hook sqlite3_api->wal_hook 452 #define sqlite3_wal_hook sqlite3_api->wal_hook 439 #define sqlite3_blob_reopen sqlite3_api->blob_reopen 453 #define sqlite3_blob_reopen sqlite3_api->blob_reopen 440 #define sqlite3_vtab_config sqlite3_api->vtab_config 454 #define sqlite3_vtab_config sqlite3_api->vtab_config 441 #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict 455 #define sqlite3_vtab_on_conflict sqlite3_api->vtab_on_conflict > 456 /* Version 3.7.16 and later */ > 457 #define sqlite3_close_v2 sqlite3_api->close_v2 > 458 #define sqlite3_db_filename sqlite3_api->db_filename > 459 #define sqlite3_db_readonly sqlite3_api->db_readonly > 460 #define sqlite3_db_release_memory sqlite3_api->db_release_memory > 461 #define sqlite3_errstr sqlite3_api->errstr > 462 #define sqlite3_stmt_busy sqlite3_api->stmt_busy > 463 #define sqlite3_stmt_readonly sqlite3_api->stmt_readonly > 464 #define sqlite3_stricmp sqlite3_api->stricmp > 465 #define sqlite3_uri_boolean sqlite3_api->uri_boolean > 466 #define sqlite3_uri_int64 sqlite3_api->uri_int64 > 467 #define sqlite3_uri_parameter sqlite3_api->uri_parameter > 468 #define sqlite3_uri_vsnprintf sqlite3_api->vsnprintf > 469 #define sqlite3_wal_checkpoint_v2 sqlite3_api->wal_checkpoint_v2 442 #endif /* SQLITE_CORE */ 470 #endif /* SQLITE_CORE */ 443 471 444 #define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api = 0; 472 #define SQLITE_EXTENSION_INIT1 const sqlite3_api_routines *sqlite3_api = 0; 445 #define SQLITE_EXTENSION_INIT2(v) sqlite3_api = v; 473 #define SQLITE_EXTENSION_INIT2(v) sqlite3_api = v; 446 474 447 #endif /* _SQLITE3EXT_H_ */ 475 #endif /* _SQLITE3EXT_H_ */