mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 03:46:32 +03:00
feat: use libsqlite3-sys
This commit is contained in:
58
src/x.rs
58
src/x.rs
@@ -641,62 +641,4 @@ extern "C" {
|
||||
|
||||
pub fn dc_strbuilder_catf(_: *mut dc_strbuilder_t, format: *const libc::c_char, _: ...);
|
||||
pub fn dc_mprintf(format: *const libc::c_char, _: ...) -> *mut libc::c_char;
|
||||
|
||||
// -- Sqlite3
|
||||
|
||||
pub fn sqlite3_bind_blob(
|
||||
_: *mut sqlite3_stmt,
|
||||
_: libc::c_int,
|
||||
_: *const libc::c_void,
|
||||
n: libc::c_int,
|
||||
_: Option<unsafe extern "C" fn(_: *mut libc::c_void) -> ()>,
|
||||
) -> libc::c_int;
|
||||
pub fn sqlite3_bind_int64(
|
||||
_: *mut sqlite3_stmt,
|
||||
_: libc::c_int,
|
||||
_: sqlite3_int64,
|
||||
) -> libc::c_int;
|
||||
pub fn sqlite3_bind_text(
|
||||
_: *mut sqlite3_stmt,
|
||||
_: libc::c_int,
|
||||
_: *const libc::c_char,
|
||||
_: libc::c_int,
|
||||
_: Option<unsafe extern "C" fn(_: *mut libc::c_void) -> ()>,
|
||||
) -> libc::c_int;
|
||||
pub fn sqlite3_step(_: *mut sqlite3_stmt) -> libc::c_int;
|
||||
pub fn sqlite3_column_int(_: *mut sqlite3_stmt, iCol: libc::c_int) -> libc::c_int;
|
||||
pub fn sqlite3_column_int64(_: *mut sqlite3_stmt, iCol: libc::c_int) -> sqlite3_int64;
|
||||
pub fn sqlite3_column_text(_: *mut sqlite3_stmt, iCol: libc::c_int) -> *const libc::c_uchar;
|
||||
pub fn sqlite3_column_type(_: *mut sqlite3_stmt, iCol: libc::c_int) -> libc::c_int;
|
||||
pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> libc::c_int;
|
||||
pub fn sqlite3_bind_int(_: *mut sqlite3_stmt, _: libc::c_int, _: libc::c_int) -> libc::c_int;
|
||||
pub fn sqlite3_column_blob(_: *mut sqlite3_stmt, iCol: libc::c_int) -> *const libc::c_void;
|
||||
pub fn sqlite3_column_bytes(_: *mut sqlite3_stmt, iCol: libc::c_int) -> libc::c_int;
|
||||
pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> libc::c_int;
|
||||
pub fn sqlite3_mprintf(_: *const libc::c_char, _: ...) -> *mut libc::c_char;
|
||||
pub fn sqlite3_free(_: *mut libc::c_void);
|
||||
pub fn sqlite3_bind_double(
|
||||
_: *mut sqlite3_stmt,
|
||||
_: libc::c_int,
|
||||
_: libc::c_double,
|
||||
) -> libc::c_int;
|
||||
pub fn sqlite3_column_double(_: *mut sqlite3_stmt, iCol: libc::c_int) -> libc::c_double;
|
||||
pub fn sqlite3_threadsafe() -> libc::c_int;
|
||||
pub fn sqlite3_close(_: *mut sqlite3) -> libc::c_int;
|
||||
pub fn sqlite3_busy_timeout(_: *mut sqlite3, ms: libc::c_int) -> libc::c_int;
|
||||
pub fn sqlite3_vmprintf(_: *const libc::c_char, _: ::std::ffi::VaList) -> *mut libc::c_char;
|
||||
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_errmsg(_: *mut sqlite3) -> *const libc::c_char;
|
||||
pub fn sqlite3_prepare_v2(
|
||||
db: *mut sqlite3,
|
||||
zSql: *const libc::c_char,
|
||||
nByte: libc::c_int,
|
||||
ppStmt: *mut *mut sqlite3_stmt,
|
||||
pzTail: *mut *const libc::c_char,
|
||||
) -> libc::c_int;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user