2015-02-24 04:22:34 +08:00
|
|
|
#![allow(raw_pointer_derive, non_snake_case, non_camel_case_types)]
|
2015-07-05 02:46:39 +08:00
|
|
|
/* automatically generated by rust-bindgen */
|
2014-10-20 07:56:41 +08:00
|
|
|
|
2015-07-05 02:46:39 +08:00
|
|
|
pub type va_list = __builtin_va_list;
|
|
|
|
pub type __gnuc_va_list = __builtin_va_list;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub enum Struct_sqlite3 { }
|
|
|
|
pub type sqlite3 = Struct_sqlite3;
|
|
|
|
pub type sqlite_int64 = ::libc::c_longlong;
|
|
|
|
pub type sqlite_uint64 = ::libc::c_ulonglong;
|
|
|
|
pub type sqlite3_int64 = sqlite_int64;
|
|
|
|
pub type sqlite3_uint64 = sqlite_uint64;
|
|
|
|
pub type sqlite3_callback =
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::libc::c_void,
|
|
|
|
arg2: ::libc::c_int,
|
|
|
|
arg3: *mut *mut ::libc::c_char,
|
|
|
|
arg4: *mut *mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>;
|
|
|
|
pub type sqlite3_file = Struct_sqlite3_file;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_file {
|
|
|
|
pub pMethods: *const Struct_sqlite3_io_methods,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_file {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_file {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub type sqlite3_io_methods = Struct_sqlite3_io_methods;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_io_methods {
|
|
|
|
pub iVersion: ::libc::c_int,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRead: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
iAmt: ::libc::c_int,
|
|
|
|
iOfst:
|
|
|
|
sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xWrite: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
arg2:
|
|
|
|
*const ::libc::c_void,
|
|
|
|
iAmt:
|
|
|
|
::libc::c_int,
|
|
|
|
iOfst:
|
|
|
|
sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
size:
|
|
|
|
sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSync: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
flags:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFileSize: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
pSize:
|
|
|
|
*mut sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xLock: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
arg2: ::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xUnlock: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCheckReservedLock: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
pResOut:
|
|
|
|
*mut ::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFileControl: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
op:
|
|
|
|
::libc::c_int,
|
|
|
|
pArg:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSectorSize: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDeviceCharacteristics: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShmMap: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
iPg:
|
|
|
|
::libc::c_int,
|
|
|
|
pgsz:
|
|
|
|
::libc::c_int,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShmLock: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
offset:
|
|
|
|
::libc::c_int,
|
|
|
|
n: ::libc::c_int,
|
|
|
|
flags:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShmBarrier: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShmUnmap: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
deleteFlag:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFetch: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
iOfst:
|
|
|
|
sqlite3_int64,
|
|
|
|
iAmt:
|
|
|
|
::libc::c_int,
|
|
|
|
pp:
|
|
|
|
*mut *mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xUnfetch: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
iOfst:
|
|
|
|
sqlite3_int64,
|
|
|
|
p:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_io_methods {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_io_methods {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
|
|
|
pub enum Struct_sqlite3_mutex { }
|
|
|
|
pub type sqlite3_mutex = Struct_sqlite3_mutex;
|
|
|
|
pub type sqlite3_vfs = Struct_sqlite3_vfs;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub type sqlite3_syscall_ptr = ::std::option::Option<extern "C" fn() -> ()>;
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_vfs {
|
|
|
|
pub iVersion: ::libc::c_int,
|
|
|
|
pub szOsFile: ::libc::c_int,
|
|
|
|
pub mxPathname: ::libc::c_int,
|
|
|
|
pub pNext: *mut sqlite3_vfs,
|
|
|
|
pub zName: *const ::libc::c_char,
|
|
|
|
pub pAppData: *mut ::libc::c_void,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3_file,
|
|
|
|
flags:
|
|
|
|
::libc::c_int,
|
|
|
|
pOutFlags:
|
|
|
|
*mut ::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDelete: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
syncDir:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xAccess: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
flags:
|
|
|
|
::libc::c_int,
|
|
|
|
pResOut:
|
|
|
|
*mut ::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFullPathname: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
nOut:
|
|
|
|
::libc::c_int,
|
|
|
|
zOut:
|
|
|
|
*mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDlOpen: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zFilename:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut ::libc::c_void>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDlError: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
nByte:
|
|
|
|
::libc::c_int,
|
|
|
|
zErrMsg:
|
|
|
|
*mut ::libc::c_char)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDlSym: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
zSymbol:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
zSymbol:
|
|
|
|
*const ::libc::c_char)
|
2015-07-05 02:46:39 +08:00
|
|
|
->
|
|
|
|
()>>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDlClose: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRandomness: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
nByte:
|
|
|
|
::libc::c_int,
|
|
|
|
zOut:
|
|
|
|
*mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSleep: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
microseconds:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCurrentTime: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_double)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xGetLastError: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCurrentTimeInt64: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSetSystemCall: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg2:
|
|
|
|
sqlite3_syscall_ptr)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xGetSystemCall: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> sqlite3_syscall_ptr>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xNextSystemCall: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vfs,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *const ::libc::c_char>,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_vfs {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_vfs {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub type sqlite3_mem_methods = Struct_sqlite3_mem_methods;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_mem_methods {
|
|
|
|
pub xMalloc: ::std::option::Option<extern "C" fn(arg1: ::libc::c_int)
|
|
|
|
-> *mut ::libc::c_void>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFree: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRealloc: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut ::libc::c_void>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSize: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
pub xRoundup: ::std::option::Option<extern "C" fn(arg1: ::libc::c_int)
|
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
pub pAppData: *mut ::libc::c_void,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_mem_methods {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_mem_methods {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub enum Struct_sqlite3_stmt { }
|
|
|
|
pub type sqlite3_stmt = Struct_sqlite3_stmt;
|
|
|
|
pub enum Struct_Mem { }
|
|
|
|
pub type sqlite3_value = Struct_Mem;
|
|
|
|
pub enum Struct_sqlite3_context { }
|
|
|
|
pub type sqlite3_context = Struct_sqlite3_context;
|
|
|
|
pub type sqlite3_destructor_type =
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1: *mut ::libc::c_void)
|
|
|
|
-> ()>;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub type sqlite3_vtab = Struct_sqlite3_vtab;
|
|
|
|
pub type sqlite3_index_info = Struct_sqlite3_index_info;
|
|
|
|
pub type sqlite3_vtab_cursor = Struct_sqlite3_vtab_cursor;
|
|
|
|
pub type sqlite3_module = Struct_sqlite3_module;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_module {
|
|
|
|
pub iVersion: ::libc::c_int,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCreate: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3,
|
|
|
|
pAux:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
argc:
|
|
|
|
::libc::c_int,
|
|
|
|
argv:
|
|
|
|
*const *const ::libc::c_char,
|
|
|
|
ppVTab:
|
|
|
|
*mut *mut sqlite3_vtab,
|
|
|
|
arg2:
|
|
|
|
*mut *mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xConnect: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3,
|
|
|
|
pAux:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
argc:
|
|
|
|
::libc::c_int,
|
|
|
|
argv:
|
|
|
|
*const *const ::libc::c_char,
|
|
|
|
ppVTab:
|
|
|
|
*mut *mut sqlite3_vtab,
|
|
|
|
arg2:
|
|
|
|
*mut *mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xBestIndex: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
arg1:
|
|
|
|
*mut sqlite3_index_info)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDisconnect: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDestroy: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xOpen: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
ppCursor:
|
|
|
|
*mut *mut sqlite3_vtab_cursor)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xClose: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFilter: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor,
|
|
|
|
idxNum:
|
|
|
|
::libc::c_int,
|
|
|
|
idxStr:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
argc:
|
|
|
|
::libc::c_int,
|
|
|
|
argv:
|
|
|
|
*mut *mut sqlite3_value)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xNext: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xEof: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xColumn: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg3:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRowid: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab_cursor,
|
|
|
|
pRowid:
|
|
|
|
*mut sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xUpdate: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value,
|
|
|
|
arg4:
|
|
|
|
*mut sqlite3_int64)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xBegin: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSync: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCommit: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRollback: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFindFunction: ::std::option::Option<unsafe extern "C" fn(pVtab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
nArg:
|
|
|
|
::libc::c_int,
|
|
|
|
zName:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
pxFunc:
|
|
|
|
*mut ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
|
|
|
->
|
|
|
|
()>,
|
|
|
|
ppArg:
|
|
|
|
*mut *mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRename: ::std::option::Option<unsafe extern "C" fn(pVtab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
zNew:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xSavepoint: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
arg1:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRelease: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
arg1:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRollbackTo: ::std::option::Option<unsafe extern "C" fn(pVTab:
|
|
|
|
*mut sqlite3_vtab,
|
|
|
|
arg1:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_module {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_module {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_index_info {
|
|
|
|
pub nConstraint: ::libc::c_int,
|
|
|
|
pub aConstraint: *mut Struct_sqlite3_index_constraint,
|
|
|
|
pub nOrderBy: ::libc::c_int,
|
|
|
|
pub aOrderBy: *mut Struct_sqlite3_index_orderby,
|
|
|
|
pub aConstraintUsage: *mut Struct_sqlite3_index_constraint_usage,
|
|
|
|
pub idxNum: ::libc::c_int,
|
|
|
|
pub idxStr: *mut ::libc::c_char,
|
|
|
|
pub needToFreeIdxStr: ::libc::c_int,
|
|
|
|
pub orderByConsumed: ::libc::c_int,
|
|
|
|
pub estimatedCost: ::libc::c_double,
|
2015-07-05 02:46:39 +08:00
|
|
|
pub estimatedRows: sqlite3_int64,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_index_info {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_index_info {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_index_constraint {
|
|
|
|
pub iColumn: ::libc::c_int,
|
|
|
|
pub op: ::libc::c_uchar,
|
|
|
|
pub usable: ::libc::c_uchar,
|
|
|
|
pub iTermOffset: ::libc::c_int,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_index_constraint {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_index_constraint {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_index_orderby {
|
|
|
|
pub iColumn: ::libc::c_int,
|
|
|
|
pub desc: ::libc::c_uchar,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_index_orderby {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_index_orderby {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_index_constraint_usage {
|
|
|
|
pub argvIndex: ::libc::c_int,
|
|
|
|
pub omit: ::libc::c_uchar,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_index_constraint_usage {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_index_constraint_usage {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_vtab {
|
|
|
|
pub pModule: *const sqlite3_module,
|
|
|
|
pub nRef: ::libc::c_int,
|
|
|
|
pub zErrMsg: *mut ::libc::c_char,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_vtab {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_vtab {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_vtab_cursor {
|
|
|
|
pub pVtab: *mut sqlite3_vtab,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_vtab_cursor {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_vtab_cursor {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub enum Struct_sqlite3_blob { }
|
|
|
|
pub type sqlite3_blob = Struct_sqlite3_blob;
|
|
|
|
pub type sqlite3_mutex_methods = Struct_sqlite3_mutex_methods;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_mutex_methods {
|
|
|
|
pub xMutexInit: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
|
|
|
pub xMutexEnd: ::std::option::Option<extern "C" fn() -> ::libc::c_int>,
|
|
|
|
pub xMutexAlloc: ::std::option::Option<extern "C" fn(arg1: ::libc::c_int)
|
|
|
|
-> *mut sqlite3_mutex>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexFree: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexEnter: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexTry: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexLeave: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexHeld: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xMutexNotheld: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_mutex)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_mutex_methods {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_mutex_methods {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub enum Struct_sqlite3_pcache { }
|
|
|
|
pub type sqlite3_pcache = Struct_sqlite3_pcache;
|
|
|
|
pub type sqlite3_pcache_page = Struct_sqlite3_pcache_page;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_pcache_page {
|
|
|
|
pub pBuf: *mut ::libc::c_void,
|
|
|
|
pub pExtra: *mut ::libc::c_void,
|
|
|
|
}
|
2015-07-05 02:46:39 +08:00
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_pcache_page {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_pcache_page {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
2014-10-20 07:56:41 +08:00
|
|
|
pub type sqlite3_pcache_methods2 = Struct_sqlite3_pcache_methods2;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_pcache_methods2 {
|
|
|
|
pub iVersion: ::libc::c_int,
|
|
|
|
pub pArg: *mut ::libc::c_void,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
pub xCreate: ::std::option::Option<extern "C" fn(szPage: ::libc::c_int,
|
|
|
|
szExtra: ::libc::c_int,
|
|
|
|
bPurgeable:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut sqlite3_pcache>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCachesize: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
nCachesize:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xPagecount: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFetch: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
key:
|
|
|
|
::libc::c_uint,
|
|
|
|
createFlag:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut sqlite3_pcache_page>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xUnpin: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3_pcache_page,
|
|
|
|
discard:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRekey: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3_pcache_page,
|
|
|
|
oldKey:
|
|
|
|
::libc::c_uint,
|
|
|
|
newKey:
|
|
|
|
::libc::c_uint)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
iLimit:
|
|
|
|
::libc::c_uint)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShrink: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_pcache_methods2 {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_pcache_methods2 {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
|
|
|
pub type sqlite3_pcache_methods = Struct_sqlite3_pcache_methods;
|
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_pcache_methods {
|
|
|
|
pub pArg: *mut ::libc::c_void,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xInit: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xShutdown: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
pub xCreate: ::std::option::Option<extern "C" fn(szPage: ::libc::c_int,
|
|
|
|
bPurgeable:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut sqlite3_pcache>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xCachesize: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
nCachesize:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xPagecount: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xFetch: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
key:
|
|
|
|
::libc::c_uint,
|
|
|
|
createFlag:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> *mut ::libc::c_void>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xUnpin: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
discard:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xRekey: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
arg2:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
oldKey:
|
|
|
|
::libc::c_uint,
|
|
|
|
newKey:
|
|
|
|
::libc::c_uint)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xTruncate: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache,
|
|
|
|
iLimit:
|
|
|
|
::libc::c_uint)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDestroy: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_pcache)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_pcache_methods {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_pcache_methods {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
|
|
|
pub enum Struct_sqlite3_backup { }
|
|
|
|
pub type sqlite3_backup = Struct_sqlite3_backup;
|
|
|
|
pub type sqlite3_rtree_geometry = Struct_sqlite3_rtree_geometry;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub type sqlite3_rtree_query_info = Struct_sqlite3_rtree_query_info;
|
|
|
|
pub type sqlite3_rtree_dbl = ::libc::c_double;
|
2014-10-20 07:56:41 +08:00
|
|
|
#[repr(C)]
|
2015-07-05 02:46:39 +08:00
|
|
|
#[derive(Copy)]
|
2014-10-20 07:56:41 +08:00
|
|
|
pub struct Struct_sqlite3_rtree_geometry {
|
|
|
|
pub pContext: *mut ::libc::c_void,
|
|
|
|
pub nParam: ::libc::c_int,
|
2015-07-05 02:46:39 +08:00
|
|
|
pub aParam: *mut sqlite3_rtree_dbl,
|
2014-10-20 07:56:41 +08:00
|
|
|
pub pUser: *mut ::libc::c_void,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_rtree_geometry {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_rtree_geometry {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy)]
|
|
|
|
pub struct Struct_sqlite3_rtree_query_info {
|
|
|
|
pub pContext: *mut ::libc::c_void,
|
|
|
|
pub nParam: ::libc::c_int,
|
|
|
|
pub aParam: *mut sqlite3_rtree_dbl,
|
|
|
|
pub pUser: *mut ::libc::c_void,
|
2015-11-08 19:01:25 +08:00
|
|
|
pub xDelUser: ::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
|
|
|
pub aCoord: *mut sqlite3_rtree_dbl,
|
|
|
|
pub anQueue: *mut ::libc::c_uint,
|
|
|
|
pub nCoord: ::libc::c_int,
|
|
|
|
pub iLevel: ::libc::c_int,
|
|
|
|
pub mxLevel: ::libc::c_int,
|
|
|
|
pub iRowid: sqlite3_int64,
|
|
|
|
pub rParentScore: sqlite3_rtree_dbl,
|
|
|
|
pub eParentWithin: ::libc::c_int,
|
|
|
|
pub eWithin: ::libc::c_int,
|
|
|
|
pub rScore: sqlite3_rtree_dbl,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct_sqlite3_rtree_query_info {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct_sqlite3_rtree_query_info {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
|
|
|
}
|
|
|
|
pub type __builtin_va_list = [__va_list_tag; 1usize];
|
|
|
|
pub type __va_list_tag = Struct___va_list_tag;
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Copy)]
|
|
|
|
pub struct Struct___va_list_tag {
|
|
|
|
pub gp_offset: ::libc::c_uint,
|
|
|
|
pub fp_offset: ::libc::c_uint,
|
|
|
|
pub overflow_arg_area: *mut ::libc::c_void,
|
|
|
|
pub reg_save_area: *mut ::libc::c_void,
|
|
|
|
}
|
|
|
|
impl ::std::clone::Clone for Struct___va_list_tag {
|
|
|
|
fn clone(&self) -> Self { *self }
|
|
|
|
}
|
|
|
|
impl ::std::default::Default for Struct___va_list_tag {
|
|
|
|
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|
2015-11-08 19:01:25 +08:00
|
|
|
#[link(name = "sqlite3")]
|
2014-10-20 07:56:41 +08:00
|
|
|
extern "C" {
|
|
|
|
pub static mut sqlite3_version: *const ::libc::c_char;
|
|
|
|
pub static mut sqlite3_temp_directory: *mut ::libc::c_char;
|
|
|
|
pub static mut sqlite3_data_directory: *mut ::libc::c_char;
|
2014-12-24 01:21:42 +08:00
|
|
|
}
|
2015-11-08 19:01:25 +08:00
|
|
|
#[link(name = "sqlite3")]
|
2014-12-24 01:21:42 +08:00
|
|
|
extern "C" {
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_libversion() -> *const ::libc::c_char;
|
|
|
|
pub fn sqlite3_sourceid() -> *const ::libc::c_char;
|
|
|
|
pub fn sqlite3_libversion_number() -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_compileoption_used(zOptName: *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_compileoption_get(N: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_threadsafe() -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_close(arg1: *mut sqlite3) -> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_close_v2(arg1: *mut sqlite3) -> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_exec(arg1: *mut sqlite3, sql: *const ::libc::c_char,
|
|
|
|
callback:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut ::libc::c_char,
|
|
|
|
arg4:
|
|
|
|
*mut *mut ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
arg2: *mut ::libc::c_void,
|
|
|
|
errmsg: *mut *mut ::libc::c_char) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_initialize() -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_shutdown() -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_os_init() -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_os_end() -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_config(arg1: ::libc::c_int, ...) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_db_config(arg1: *mut sqlite3, op: ::libc::c_int, ...)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_extended_result_codes(arg1: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
onoff: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64;
|
|
|
|
pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_interrupt(arg1: *mut sqlite3) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_complete(sql: *const ::libc::c_char) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_complete16(sql: *const ::libc::c_void) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_busy_handler(arg1: *mut sqlite3,
|
|
|
|
arg2:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
|
|
|
arg3: *mut ::libc::c_void) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_busy_timeout(arg1: *mut sqlite3, ms: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_get_table(db: *mut sqlite3, zSql: *const ::libc::c_char,
|
|
|
|
pazResult: *mut *mut *mut ::libc::c_char,
|
|
|
|
pnRow: *mut ::libc::c_int,
|
|
|
|
pnColumn: *mut ::libc::c_int,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzErrmsg: *mut *mut ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_free_table(result: *mut *mut ::libc::c_char) -> ();
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_mprintf(arg1: *const ::libc::c_char, ...)
|
|
|
|
-> *mut ::libc::c_char;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_vmprintf(arg1: *const ::libc::c_char, arg2: va_list)
|
|
|
|
-> *mut ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_snprintf(arg1: ::libc::c_int, arg2: *mut ::libc::c_char,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg3: *const ::libc::c_char, ...)
|
|
|
|
-> *mut ::libc::c_char;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_vsnprintf(arg1: ::libc::c_int, arg2: *mut ::libc::c_char,
|
|
|
|
arg3: *const ::libc::c_char, arg4: va_list)
|
|
|
|
-> *mut ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_malloc(arg1: ::libc::c_int) -> *mut ::libc::c_void;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::libc::c_void;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_realloc(arg1: *mut ::libc::c_void, arg2: ::libc::c_int)
|
|
|
|
-> *mut ::libc::c_void;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_realloc64(arg1: *mut ::libc::c_void, arg2: sqlite3_uint64)
|
|
|
|
-> *mut ::libc::c_void;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_free(arg1: *mut ::libc::c_void) -> ();
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_msize(arg1: *mut ::libc::c_void) -> sqlite3_uint64;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_memory_used() -> sqlite3_int64;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_memory_highwater(resetFlag: ::libc::c_int)
|
|
|
|
-> sqlite3_int64;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_randomness(N: ::libc::c_int, P: *mut ::libc::c_void) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_set_authorizer(arg1: *mut sqlite3,
|
|
|
|
xAuth:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg4:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg5:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg6:
|
|
|
|
*const ::libc::c_char)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
2014-12-24 01:21:42 +08:00
|
|
|
pUserData: *mut ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_trace(arg1: *mut sqlite3,
|
|
|
|
xTrace:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
*const ::libc::c_char)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
arg2: *mut ::libc::c_void) -> *mut ::libc::c_void;
|
|
|
|
pub fn sqlite3_profile(arg1: *mut sqlite3,
|
|
|
|
xProfile:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg3:
|
|
|
|
sqlite3_uint64)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
arg2: *mut ::libc::c_void) -> *mut ::libc::c_void;
|
|
|
|
pub fn sqlite3_progress_handler(arg1: *mut sqlite3, arg2: ::libc::c_int,
|
|
|
|
arg3:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg4: *mut ::libc::c_void) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_open(filename: *const ::libc::c_char,
|
|
|
|
ppDb: *mut *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_open16(filename: *const ::libc::c_void,
|
|
|
|
ppDb: *mut *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_open_v2(filename: *const ::libc::c_char,
|
|
|
|
ppDb: *mut *mut sqlite3, flags: ::libc::c_int,
|
|
|
|
zVfs: *const ::libc::c_char) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_uri_parameter(zFilename: *const ::libc::c_char,
|
2014-12-24 01:21:42 +08:00
|
|
|
zParam: *const ::libc::c_char)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_uri_boolean(zFile: *const ::libc::c_char,
|
|
|
|
zParam: *const ::libc::c_char,
|
|
|
|
bDefault: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_uri_int64(arg1: *const ::libc::c_char,
|
|
|
|
arg2: *const ::libc::c_char, arg3: sqlite3_int64)
|
|
|
|
-> sqlite3_int64;
|
|
|
|
pub fn sqlite3_errcode(db: *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::libc::c_char;
|
|
|
|
pub fn sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::libc::c_void;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_errstr(arg1: ::libc::c_int) -> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_limit(arg1: *mut sqlite3, id: ::libc::c_int,
|
|
|
|
newVal: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_prepare(db: *mut sqlite3, zSql: *const ::libc::c_char,
|
|
|
|
nByte: ::libc::c_int,
|
|
|
|
ppStmt: *mut *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzTail: *mut *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_prepare_v2(db: *mut sqlite3, zSql: *const ::libc::c_char,
|
|
|
|
nByte: ::libc::c_int,
|
|
|
|
ppStmt: *mut *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzTail: *mut *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_prepare16(db: *mut sqlite3, zSql: *const ::libc::c_void,
|
|
|
|
nByte: ::libc::c_int,
|
|
|
|
ppStmt: *mut *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzTail: *mut *const ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_prepare16_v2(db: *mut sqlite3, zSql: *const ::libc::c_void,
|
|
|
|
nByte: ::libc::c_int,
|
|
|
|
ppStmt: *mut *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzTail: *mut *const ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::libc::c_char;
|
|
|
|
pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_bind_blob(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: *const ::libc::c_void, n: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_bind_blob64(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: *const ::libc::c_void,
|
|
|
|
arg4: sqlite3_uint64,
|
|
|
|
arg5:
|
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_double(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: ::libc::c_double) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_bind_int(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_bind_int64(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: sqlite3_int64) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_bind_null(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_text(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
2015-11-08 19:01:25 +08:00
|
|
|
arg3: *const ::libc::c_char, arg4: ::libc::c_int,
|
|
|
|
arg5:
|
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_text16(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: *const ::libc::c_void,
|
|
|
|
arg4: ::libc::c_int,
|
|
|
|
arg5:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_bind_text64(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: *const ::libc::c_char,
|
|
|
|
arg4: sqlite3_uint64,
|
|
|
|
arg5:
|
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
|
|
|
-> ()>,
|
|
|
|
encoding: ::libc::c_uchar) -> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_value(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
arg3: *const sqlite3_value) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_bind_zeroblob(arg1: *mut sqlite3_stmt, arg2: ::libc::c_int,
|
|
|
|
n: ::libc::c_int) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_parameter_name(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_bind_parameter_index(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
zName: *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_column_name(arg1: *mut sqlite3_stmt, N: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
|
|
|
pub fn sqlite3_column_name16(arg1: *mut sqlite3_stmt, N: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_database_name(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_database_name16(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_table_name(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_table_name16(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_origin_name(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_origin_name16(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_decltype(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_decltype16(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_column_blob(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
|
|
|
pub fn sqlite3_column_bytes(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_column_bytes16(arg1: *mut sqlite3_stmt,
|
|
|
|
iCol: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> ::libc::c_double;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_column_int(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_column_int64(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> sqlite3_int64;
|
|
|
|
pub fn sqlite3_column_text(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_uchar;
|
|
|
|
pub fn sqlite3_column_text16(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> *const ::libc::c_void;
|
|
|
|
pub fn sqlite3_column_type(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_column_value(arg1: *mut sqlite3_stmt, iCol: ::libc::c_int)
|
|
|
|
-> *mut sqlite3_value;
|
|
|
|
pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_create_function(db: *mut sqlite3,
|
|
|
|
zFunctionName: *const ::libc::c_char,
|
|
|
|
nArg: ::libc::c_int,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pApp: *mut ::libc::c_void,
|
|
|
|
xFunc:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xStep:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xFinal:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_create_function16(db: *mut sqlite3,
|
|
|
|
zFunctionName: *const ::libc::c_void,
|
|
|
|
nArg: ::libc::c_int,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pApp: *mut ::libc::c_void,
|
|
|
|
xFunc:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xStep:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xFinal:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_create_function_v2(db: *mut sqlite3,
|
|
|
|
zFunctionName: *const ::libc::c_char,
|
|
|
|
nArg: ::libc::c_int,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pApp: *mut ::libc::c_void,
|
|
|
|
xFunc:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xStep:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut *mut sqlite3_value)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xFinal:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_context)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
xDestroy:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-12-24 01:21:42 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_transfer_bindings(arg1: *mut sqlite3_stmt,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg2: *mut sqlite3_stmt)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_global_recover() -> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_thread_cleanup() -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_memory_alarm(arg1:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
sqlite3_int64,
|
|
|
|
arg3:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-10-20 07:56:41 +08:00
|
|
|
arg2: *mut ::libc::c_void,
|
|
|
|
arg3: sqlite3_int64) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_value_blob(arg1: *mut sqlite3_value)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_value_bytes16(arg1: *mut sqlite3_value) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> ::libc::c_double;
|
|
|
|
pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_value_text(arg1: *mut sqlite3_value)
|
|
|
|
-> *const ::libc::c_uchar;
|
|
|
|
pub fn sqlite3_value_text16(arg1: *mut sqlite3_value)
|
|
|
|
-> *const ::libc::c_void;
|
|
|
|
pub fn sqlite3_value_text16le(arg1: *mut sqlite3_value)
|
|
|
|
-> *const ::libc::c_void;
|
|
|
|
pub fn sqlite3_value_text16be(arg1: *mut sqlite3_value)
|
|
|
|
-> *const ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_aggregate_context(arg1: *mut sqlite3_context,
|
2014-12-24 01:21:42 +08:00
|
|
|
nBytes: ::libc::c_int)
|
|
|
|
-> *mut ::libc::c_void;
|
|
|
|
pub fn sqlite3_user_data(arg1: *mut sqlite3_context)
|
|
|
|
-> *mut ::libc::c_void;
|
|
|
|
pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context)
|
|
|
|
-> *mut sqlite3;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_get_auxdata(arg1: *mut sqlite3_context, N: ::libc::c_int)
|
|
|
|
-> *mut ::libc::c_void;
|
|
|
|
pub fn sqlite3_set_auxdata(arg1: *mut sqlite3_context, N: ::libc::c_int,
|
|
|
|
arg2: *mut ::libc::c_void,
|
|
|
|
arg3:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_blob(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
|
|
|
arg3: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>) -> ();
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_result_blob64(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
|
|
|
arg3: sqlite3_uint64,
|
|
|
|
arg4:
|
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
|
|
|
-> ()>) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_double(arg1: *mut sqlite3_context,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg2: ::libc::c_double) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_error(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_char,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg3: ::libc::c_int) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_error16(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg3: ::libc::c_int) -> ();
|
|
|
|
pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context) -> ();
|
|
|
|
pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg2: ::libc::c_int) -> ();
|
|
|
|
pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::libc::c_int)
|
|
|
|
-> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_int64(arg1: *mut sqlite3_context,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg2: sqlite3_int64) -> ();
|
|
|
|
pub fn sqlite3_result_null(arg1: *mut sqlite3_context) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_text(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_char,
|
|
|
|
arg3: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>) -> ();
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_result_text64(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_char,
|
|
|
|
arg3: sqlite3_uint64,
|
|
|
|
arg4:
|
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
|
|
|
-> ()>,
|
|
|
|
encoding: ::libc::c_uchar) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_text16(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
|
|
|
arg3: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_text16le(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
|
|
|
arg3: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_text16be(arg1: *mut sqlite3_context,
|
|
|
|
arg2: *const ::libc::c_void,
|
|
|
|
arg3: ::libc::c_int,
|
|
|
|
arg4:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_value(arg1: *mut sqlite3_context,
|
2015-07-05 02:46:39 +08:00
|
|
|
arg2: *mut sqlite3_value) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context,
|
2015-07-05 02:46:39 +08:00
|
|
|
n: ::libc::c_int) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_create_collation(arg1: *mut sqlite3,
|
|
|
|
zName: *const ::libc::c_char,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pArg: *mut ::libc::c_void,
|
|
|
|
xCompare:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_void,
|
|
|
|
arg4:
|
|
|
|
::libc::c_int,
|
|
|
|
arg5:
|
|
|
|
*const ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_create_collation_v2(arg1: *mut sqlite3,
|
|
|
|
zName: *const ::libc::c_char,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pArg: *mut ::libc::c_void,
|
|
|
|
xCompare:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_void,
|
|
|
|
arg4:
|
|
|
|
::libc::c_int,
|
|
|
|
arg5:
|
|
|
|
*const ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
|
|
|
xDestroy:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_create_collation16(arg1: *mut sqlite3,
|
|
|
|
zName: *const ::libc::c_void,
|
|
|
|
eTextRep: ::libc::c_int,
|
|
|
|
pArg: *mut ::libc::c_void,
|
|
|
|
xCompare:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_void,
|
|
|
|
arg4:
|
|
|
|
::libc::c_int,
|
|
|
|
arg5:
|
|
|
|
*const ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_collation_needed(arg1: *mut sqlite3,
|
|
|
|
arg2: *mut ::libc::c_void,
|
|
|
|
arg3:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3,
|
|
|
|
eTextRep:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_char)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_collation_needed16(arg1: *mut sqlite3,
|
|
|
|
arg2: *mut ::libc::c_void,
|
|
|
|
arg3:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3,
|
|
|
|
eTextRep:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_sleep(arg1: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3;
|
|
|
|
pub fn sqlite3_db_filename(db: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
zDbName: *const ::libc::c_char)
|
|
|
|
-> *const ::libc::c_char;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_db_readonly(db: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
zDbName: *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt)
|
|
|
|
-> *mut sqlite3_stmt;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_commit_hook(arg1: *mut sqlite3,
|
|
|
|
arg2:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg3: *mut ::libc::c_void)
|
|
|
|
-> *mut ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_rollback_hook(arg1: *mut sqlite3,
|
|
|
|
arg2:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg3: *mut ::libc::c_void)
|
|
|
|
-> *mut ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_update_hook(arg1: *mut sqlite3,
|
|
|
|
arg2:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg4:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg5:
|
|
|
|
sqlite3_int64)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-12-24 01:21:42 +08:00
|
|
|
arg3: *mut ::libc::c_void)
|
|
|
|
-> *mut ::libc::c_void;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_enable_shared_cache(arg1: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_release_memory(arg1: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_soft_heap_limit(N: ::libc::c_int) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_table_column_metadata(db: *mut sqlite3,
|
|
|
|
zDbName: *const ::libc::c_char,
|
|
|
|
zTableName: *const ::libc::c_char,
|
|
|
|
zColumnName: *const ::libc::c_char,
|
|
|
|
pzDataType:
|
|
|
|
*mut *const ::libc::c_char,
|
|
|
|
pzCollSeq:
|
|
|
|
*mut *const ::libc::c_char,
|
|
|
|
pNotNull: *mut ::libc::c_int,
|
|
|
|
pPrimaryKey: *mut ::libc::c_int,
|
2014-12-24 01:21:42 +08:00
|
|
|
pAutoinc: *mut ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_load_extension(db: *mut sqlite3,
|
|
|
|
zFile: *const ::libc::c_char,
|
|
|
|
zProc: *const ::libc::c_char,
|
2014-12-24 01:21:42 +08:00
|
|
|
pzErrMsg: *mut *mut ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_enable_load_extension(db: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
onoff: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_auto_extension(xEntryPoint:
|
2015-07-05 02:46:39 +08:00
|
|
|
::std::option::Option<extern "C" fn()
|
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_cancel_auto_extension(xEntryPoint:
|
|
|
|
::std::option::Option<extern "C" fn()
|
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_reset_auto_extension() -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_create_module(db: *mut sqlite3,
|
|
|
|
zName: *const ::libc::c_char,
|
|
|
|
p: *const sqlite3_module,
|
2014-12-24 01:21:42 +08:00
|
|
|
pClientData: *mut ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_create_module_v2(db: *mut sqlite3,
|
|
|
|
zName: *const ::libc::c_char,
|
|
|
|
p: *const sqlite3_module,
|
|
|
|
pClientData: *mut ::libc::c_void,
|
|
|
|
xDestroy:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_declare_vtab(arg1: *mut sqlite3,
|
|
|
|
zSQL: *const ::libc::c_char) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_overload_function(arg1: *mut sqlite3,
|
|
|
|
zFuncName: *const ::libc::c_char,
|
|
|
|
nArg: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_blob_open(arg1: *mut sqlite3, zDb: *const ::libc::c_char,
|
|
|
|
zTable: *const ::libc::c_char,
|
|
|
|
zColumn: *const ::libc::c_char,
|
|
|
|
iRow: sqlite3_int64, flags: ::libc::c_int,
|
|
|
|
ppBlob: *mut *mut sqlite3_blob) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_blob_reopen(arg1: *mut sqlite3_blob, arg2: sqlite3_int64)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_blob_read(arg1: *mut sqlite3_blob, Z: *mut ::libc::c_void,
|
2014-12-24 01:21:42 +08:00
|
|
|
N: ::libc::c_int, iOffset: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_blob_write(arg1: *mut sqlite3_blob,
|
|
|
|
z: *const ::libc::c_void, n: ::libc::c_int,
|
|
|
|
iOffset: ::libc::c_int) -> ::libc::c_int;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_vfs_find(zVfsName: *const ::libc::c_char)
|
|
|
|
-> *mut sqlite3_vfs;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_vfs_register(arg1: *mut sqlite3_vfs,
|
|
|
|
makeDflt: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_mutex_alloc(arg1: ::libc::c_int) -> *mut sqlite3_mutex;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex) -> ();
|
|
|
|
pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex;
|
|
|
|
pub fn sqlite3_file_control(arg1: *mut sqlite3,
|
|
|
|
zDbName: *const ::libc::c_char,
|
|
|
|
op: ::libc::c_int, arg2: *mut ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_test_control(op: ::libc::c_int, ...) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_status(op: ::libc::c_int, pCurrent: *mut ::libc::c_int,
|
|
|
|
pHighwater: *mut ::libc::c_int,
|
|
|
|
resetFlag: ::libc::c_int) -> ::libc::c_int;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_status64(op: ::libc::c_int, pCurrent: *mut sqlite3_int64,
|
|
|
|
pHighwater: *mut sqlite3_int64,
|
|
|
|
resetFlag: ::libc::c_int) -> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_db_status(arg1: *mut sqlite3, op: ::libc::c_int,
|
|
|
|
pCur: *mut ::libc::c_int,
|
|
|
|
pHiwtr: *mut ::libc::c_int,
|
|
|
|
resetFlg: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_stmt_status(arg1: *mut sqlite3_stmt, op: ::libc::c_int,
|
|
|
|
resetFlg: ::libc::c_int) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_backup_init(pDest: *mut sqlite3,
|
|
|
|
zDestName: *const ::libc::c_char,
|
|
|
|
pSource: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
zSourceName: *const ::libc::c_char)
|
|
|
|
-> *mut sqlite3_backup;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_backup_step(p: *mut sqlite3_backup, nPage: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_unlock_notify(pBlocked: *mut sqlite3,
|
|
|
|
xNotify:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(apArg:
|
|
|
|
*mut *mut ::libc::c_void,
|
|
|
|
nArg:
|
|
|
|
::libc::c_int)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>,
|
2014-12-24 01:21:42 +08:00
|
|
|
pNotifyArg: *mut ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_stricmp(arg1: *const ::libc::c_char,
|
|
|
|
arg2: *const ::libc::c_char) -> ::libc::c_int;
|
|
|
|
pub fn sqlite3_strnicmp(arg1: *const ::libc::c_char,
|
|
|
|
arg2: *const ::libc::c_char, arg3: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_strglob(zGlob: *const ::libc::c_char,
|
|
|
|
zStr: *const ::libc::c_char) -> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_log(iErrCode: ::libc::c_int,
|
2015-07-05 02:46:39 +08:00
|
|
|
zFormat: *const ::libc::c_char, ...) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_wal_hook(arg1: *mut sqlite3,
|
|
|
|
arg2:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void,
|
|
|
|
arg2:
|
|
|
|
*mut sqlite3,
|
|
|
|
arg3:
|
|
|
|
*const ::libc::c_char,
|
|
|
|
arg4:
|
|
|
|
::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int>,
|
|
|
|
arg3: *mut ::libc::c_void) -> *mut ::libc::c_void;
|
2014-12-24 01:21:42 +08:00
|
|
|
pub fn sqlite3_wal_autocheckpoint(db: *mut sqlite3, N: ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_wal_checkpoint(db: *mut sqlite3,
|
2014-12-24 01:21:42 +08:00
|
|
|
zDb: *const ::libc::c_char)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_wal_checkpoint_v2(db: *mut sqlite3,
|
|
|
|
zDb: *const ::libc::c_char,
|
|
|
|
eMode: ::libc::c_int,
|
|
|
|
pnLog: *mut ::libc::c_int,
|
2014-12-24 01:21:42 +08:00
|
|
|
pnCkpt: *mut ::libc::c_int)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_vtab_config(arg1: *mut sqlite3, op: ::libc::c_int, ...)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::libc::c_int;
|
2015-11-08 19:01:25 +08:00
|
|
|
pub fn sqlite3_stmt_scanstatus(pStmt: *mut sqlite3_stmt,
|
|
|
|
idx: ::libc::c_int,
|
|
|
|
iScanStatusOp: ::libc::c_int,
|
|
|
|
pOut: *mut ::libc::c_void)
|
|
|
|
-> ::libc::c_int;
|
|
|
|
pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt) -> ();
|
2014-10-20 07:56:41 +08:00
|
|
|
pub fn sqlite3_rtree_geometry_callback(db: *mut sqlite3,
|
|
|
|
zGeom: *const ::libc::c_char,
|
|
|
|
xGeom:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_rtree_geometry,
|
|
|
|
arg2:
|
|
|
|
::libc::c_int,
|
|
|
|
arg3:
|
|
|
|
*mut sqlite3_rtree_dbl,
|
|
|
|
arg4:
|
|
|
|
*mut ::libc::c_int)
|
2014-10-20 07:56:41 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
2014-12-24 01:21:42 +08:00
|
|
|
pContext: *mut ::libc::c_void)
|
2014-10-20 07:56:41 +08:00
|
|
|
-> ::libc::c_int;
|
2015-07-05 02:46:39 +08:00
|
|
|
pub fn sqlite3_rtree_query_callback(db: *mut sqlite3,
|
|
|
|
zQueryFunc: *const ::libc::c_char,
|
|
|
|
xQueryFunc:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut sqlite3_rtree_query_info)
|
2015-07-05 02:46:39 +08:00
|
|
|
->
|
|
|
|
::libc::c_int>,
|
|
|
|
pContext: *mut ::libc::c_void,
|
|
|
|
xDestructor:
|
2015-11-08 19:01:25 +08:00
|
|
|
::std::option::Option<unsafe extern "C" fn(arg1:
|
|
|
|
*mut ::libc::c_void)
|
2015-07-05 02:46:39 +08:00
|
|
|
-> ()>)
|
|
|
|
-> ::libc::c_int;
|
2014-10-20 07:56:41 +08:00
|
|
|
}
|