mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Revert "Using version 3 of SQLite3 VFS."
This reverts commit 8eab2381af.
This commit is contained in:
parent
8eab2381af
commit
76e45b56cb
1 changed files with 5 additions and 3 deletions
|
|
@ -217,7 +217,7 @@ static int sqlite3bctbx_Sync(sqlite3_file *p, int flags){
|
|||
/**
|
||||
* Opens the file fName and populates the structure pointed by p
|
||||
* with the necessary io_methods
|
||||
* Methods not implemented for version 3 : xTruncate, xSectorSize.
|
||||
* Methods not implemented for version 1 : xTruncate, xSectorSize.
|
||||
* Initializes some fields in the p structure, some of which where already
|
||||
* initialized by SQLite.
|
||||
* @param pVfs sqlite3_vfs VFS pointer.
|
||||
|
|
@ -229,7 +229,7 @@ static int sqlite3bctbx_Sync(sqlite3_file *p, int flags){
|
|||
*/
|
||||
static int sqlite3bctbx_Open(sqlite3_vfs *pVfs, const char *fName, sqlite3_file *p, int flags, int *pOutFlags ){
|
||||
static const sqlite3_io_methods sqlite3_bctbx_io = {
|
||||
3, /* iVersion Structure version number */
|
||||
1, /* iVersion Structure version number */
|
||||
sqlite3bctbx_Close, /* xClose */
|
||||
sqlite3bctbx_Read, /* xRead */
|
||||
sqlite3bctbx_Write, /* xWrite */
|
||||
|
|
@ -276,7 +276,7 @@ static int sqlite3bctbx_Open(sqlite3_vfs *pVfs, const char *fName, sqlite3_file
|
|||
|
||||
sqlite3_vfs *sqlite3_bctbx_vfs_create(void){
|
||||
static sqlite3_vfs bctbx_vfs = {
|
||||
3, /* iVersion */
|
||||
1, /* iVersion */
|
||||
sizeof(sqlite3_bctbx_file), /* szOsFile */
|
||||
MAXPATHNAME, /* mxPathname */
|
||||
0, /* pNext */
|
||||
|
|
@ -310,6 +310,8 @@ void sqlite3_bctbx_vfs_register( int makeDefault){
|
|||
pVfsToUse->xSleep = pDefault->xSleep;
|
||||
pVfsToUse->xRandomness = pDefault->xRandomness;
|
||||
pVfsToUse->xGetLastError = pDefault->xGetLastError; /* Not implemented by sqlite3 :place holder */
|
||||
/*Functions below should not be a problem sincve we are declaring ourselves
|
||||
in version 1 */
|
||||
|
||||
/* used in version 2 */
|
||||
pVfsToUse->xCurrentTimeInt64 = pDefault->xCurrentTimeInt64;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue