Upgrade bundled version to SQLite 3.27.2

And upgrade to bindgen 0.48
This commit is contained in:
gwenn
2019-03-10 13:49:21 +01:00
parent ac0baecfe2
commit e760344351
6 changed files with 5362 additions and 4030 deletions

View File

@@ -1,10 +1,10 @@
/* automatically generated by rust-bindgen */
pub const __GNUC_VA_LIST: i32 = 1;
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.26.0\0";
pub const SQLITE_VERSION_NUMBER: i32 = 3026000;
pub const SQLITE_VERSION: &'static [u8; 7usize] = b"3.27.2\0";
pub const SQLITE_VERSION_NUMBER: i32 = 3027002;
pub const SQLITE_SOURCE_ID: &'static [u8; 85usize] =
b"2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238b4f9\0";
b"2019-02-25 16:06:06 bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7\0";
pub const SQLITE_OK: i32 = 0;
pub const SQLITE_ERROR: i32 = 1;
pub const SQLITE_INTERNAL: i32 = 2;
@@ -180,6 +180,7 @@ pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE: i32 = 32;
pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE: i32 = 33;
pub const SQLITE_FCNTL_LOCK_TIMEOUT: i32 = 34;
pub const SQLITE_FCNTL_DATA_VERSION: i32 = 35;
pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36;
pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2;
pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3;
pub const SQLITE_LAST_ERRNO: i32 = 4;
@@ -218,6 +219,7 @@ pub const SQLITE_CONFIG_PMASZ: i32 = 25;
pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26;
pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27;
pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28;
pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29;
pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000;
pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001;
pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002;
@@ -284,6 +286,7 @@ pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10;
pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11;
pub const SQLITE_PREPARE_PERSISTENT: i32 = 1;
pub const SQLITE_PREPARE_NORMALIZE: i32 = 2;
pub const SQLITE_PREPARE_NO_VTAB: i32 = 4;
pub const SQLITE_INTEGER: i32 = 1;
pub const SQLITE_FLOAT: i32 = 2;
pub const SQLITE_BLOB: i32 = 4;
@@ -470,9 +473,9 @@ extern "C" {
callback: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut ::std::os::raw::c_char,
arg4: *mut *mut ::std::os::raw::c_char,
sql: ::std::os::raw::c_int,
callback: *mut *mut ::std::os::raw::c_char,
arg2: *mut *mut ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
arg2: *mut ::std::os::raw::c_void,
@@ -1450,11 +1453,11 @@ extern "C" {
xAuth: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
xAuth: ::std::os::raw::c_int,
pUserData: *const ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: *const ::std::os::raw::c_char,
arg4: *const ::std::os::raw::c_char,
arg5: *const ::std::os::raw::c_char,
arg6: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int,
>,
pUserData: *mut ::std::os::raw::c_void,
@@ -1466,7 +1469,7 @@ extern "C" {
xTrace: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_char,
xTrace: *const ::std::os::raw::c_char,
),
>,
arg2: *mut ::std::os::raw::c_void,
@@ -1478,8 +1481,8 @@ extern "C" {
xProfile: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_char,
arg3: sqlite3_uint64,
xProfile: *const ::std::os::raw::c_char,
arg2: sqlite3_uint64,
),
>,
arg2: *mut ::std::os::raw::c_void,
@@ -1492,9 +1495,9 @@ extern "C" {
xCallback: ::std::option::Option<
unsafe extern "C" fn(
arg1: ::std::os::raw::c_uint,
arg2: *mut ::std::os::raw::c_void,
arg3: *mut ::std::os::raw::c_void,
arg4: *mut ::std::os::raw::c_void,
uMask: *mut ::std::os::raw::c_void,
xCallback: *mut ::std::os::raw::c_void,
pCtx: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pCtx: *mut ::std::os::raw::c_void,
@@ -1920,19 +1923,19 @@ extern "C" {
pApp: *mut ::std::os::raw::c_void,
xFunc: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xStep: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
xFinal: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3_context)>,
) -> ::std::os::raw::c_int;
}
extern "C" {
@@ -1944,19 +1947,19 @@ extern "C" {
pApp: *mut ::std::os::raw::c_void,
xFunc: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xStep: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
xFinal: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3_context)>,
) -> ::std::os::raw::c_int;
}
extern "C" {
@@ -1968,20 +1971,20 @@ extern "C" {
pApp: *mut ::std::os::raw::c_void,
xFunc: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xStep: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
xFinal: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3_context)>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(db: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int;
}
extern "C" {
@@ -1993,21 +1996,21 @@ extern "C" {
pApp: *mut ::std::os::raw::c_void,
xStep: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xFinal: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
xValue: ::std::option::Option<unsafe extern "C" fn(arg1: *mut sqlite3_context)>,
xFinal: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3_context)>,
xValue: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3_context)>,
xInverse: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_context,
arg2: ::std::os::raw::c_int,
arg3: *mut *mut sqlite3_value,
db: *mut sqlite3_context,
zFunctionName: ::std::os::raw::c_int,
nArg: *mut *mut sqlite3_value,
),
>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(db: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int;
}
extern "C" {
@@ -2247,10 +2250,10 @@ extern "C" {
xCompare: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_void,
arg4: ::std::os::raw::c_int,
arg5: *const ::std::os::raw::c_void,
zName: ::std::os::raw::c_int,
eTextRep: *const ::std::os::raw::c_void,
pArg: ::std::os::raw::c_int,
xCompare: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
@@ -2264,10 +2267,10 @@ extern "C" {
xCompare: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_void,
arg4: ::std::os::raw::c_int,
arg5: *const ::std::os::raw::c_void,
zName: ::std::os::raw::c_int,
eTextRep: *const ::std::os::raw::c_void,
pArg: ::std::os::raw::c_int,
xCompare: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
@@ -2282,10 +2285,10 @@ extern "C" {
xCompare: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_void,
arg4: ::std::os::raw::c_int,
arg5: *const ::std::os::raw::c_void,
zName: ::std::os::raw::c_int,
eTextRep: *const ::std::os::raw::c_void,
pArg: ::std::os::raw::c_int,
xCompare: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> ::std::os::raw::c_int;
@@ -2298,8 +2301,8 @@ extern "C" {
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *mut sqlite3,
eTextRep: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_char,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_char,
),
>,
) -> ::std::os::raw::c_int;
@@ -2312,8 +2315,8 @@ extern "C" {
unsafe extern "C" fn(
arg1: *mut ::std::os::raw::c_void,
arg2: *mut sqlite3,
eTextRep: ::std::os::raw::c_int,
arg3: *const ::std::os::raw::c_void,
arg3: ::std::os::raw::c_int,
arg4: *const ::std::os::raw::c_void,
),
>,
) -> ::std::os::raw::c_int;
@@ -3208,7 +3211,7 @@ extern "C" {
zName: *const ::std::os::raw::c_char,
p: *const sqlite3_module,
pClientData: *mut ::std::os::raw::c_void,
xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
xDestroy: ::std::option::Option<unsafe extern "C" fn(db: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
@@ -4089,8 +4092,8 @@ extern "C" {
pBlocked: *mut sqlite3,
xNotify: ::std::option::Option<
unsafe extern "C" fn(
apArg: *mut *mut ::std::os::raw::c_void,
nArg: ::std::os::raw::c_int,
pBlocked: *mut *mut ::std::os::raw::c_void,
xNotify: ::std::os::raw::c_int,
),
>,
pNotifyArg: *mut ::std::os::raw::c_void,
@@ -4282,10 +4285,10 @@ extern "C" {
zGeom: *const ::std::os::raw::c_char,
xGeom: ::std::option::Option<
unsafe extern "C" fn(
arg1: *mut sqlite3_rtree_geometry,
arg2: ::std::os::raw::c_int,
arg3: *mut sqlite3_rtree_dbl,
arg4: *mut ::std::os::raw::c_int,
db: *mut sqlite3_rtree_geometry,
zGeom: ::std::os::raw::c_int,
xGeom: *mut sqlite3_rtree_dbl,
pContext: *mut ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pContext: *mut ::std::os::raw::c_void,
@@ -4368,10 +4371,10 @@ extern "C" {
db: *mut sqlite3,
zQueryFunc: *const ::std::os::raw::c_char,
xQueryFunc: ::std::option::Option<
unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int,
unsafe extern "C" fn(db: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int,
>,
pContext: *mut ::std::os::raw::c_void,
xDestructor: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
xDestructor: ::std::option::Option<unsafe extern "C" fn(db: *mut ::std::os::raw::c_void)>,
) -> ::std::os::raw::c_int;
}
#[repr(C)]