mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-21 21:09:23 +08:00
Fix sqlite3_auto_extension xEntryPoint signature
This commit is contained in:
parent
57a7b29b68
commit
c5f0b27693
@ -1,5 +1,17 @@
|
||||
/* automatically generated by rust-bindgen 0.60.1 */
|
||||
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<
|
||||
unsafe extern "C" fn(
|
||||
db: *mut sqlite3,
|
||||
pzErrMsg: *mut *const ::std::os::raw::c_char,
|
||||
pThunk: *mut sqlite3_api_routines,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
|
||||
pub const SQLITE_VERSION: &[u8; 7usize] = b"3.14.0\0";
|
||||
pub const SQLITE_VERSION_NUMBER: i32 = 3014000;
|
||||
pub const SQLITE_SOURCE_ID: &[u8; 61usize] =
|
||||
@ -1729,11 +1741,6 @@ extern "C" {
|
||||
onoff: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_cancel_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
|
@ -523,6 +523,17 @@ mod bindings {
|
||||
.trust_clang_mangling(false)
|
||||
.header(header.clone())
|
||||
.parse_callbacks(Box::new(SqliteTypeChooser))
|
||||
.blocklist_function("sqlite3_auto_extension")
|
||||
.raw_line(
|
||||
r#"extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn(db: *mut sqlite3,
|
||||
pzErrMsg: *mut *const ::std::os::raw::c_char,
|
||||
pThunk: *mut sqlite3_api_routines
|
||||
) -> ::std::os::raw::c_int>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}"#,
|
||||
)
|
||||
.rustfmt_bindings(true);
|
||||
|
||||
if cfg!(any(feature = "sqlcipher", feature = "bundled-sqlcipher")) {
|
||||
|
@ -1,5 +1,17 @@
|
||||
/* automatically generated by rust-bindgen 0.63.0 */
|
||||
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<
|
||||
unsafe extern "C" fn(
|
||||
db: *mut sqlite3,
|
||||
pzErrMsg: *mut *const ::std::os::raw::c_char,
|
||||
pThunk: *mut sqlite3_api_routines,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
|
||||
pub const SQLITE_VERSION: &[u8; 7usize] = b"3.39.4\0";
|
||||
pub const SQLITE_VERSION_NUMBER: i32 = 3039004;
|
||||
pub const SQLITE_SOURCE_ID: &[u8; 85usize] =
|
||||
@ -2036,11 +2048,6 @@ extern "C" {
|
||||
onoff: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_cancel_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
|
@ -1,5 +1,17 @@
|
||||
/* automatically generated by rust-bindgen 0.64.0 */
|
||||
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<
|
||||
unsafe extern "C" fn(
|
||||
db: *mut sqlite3,
|
||||
pzErrMsg: *mut *const ::std::os::raw::c_char,
|
||||
pThunk: *mut sqlite3_api_routines,
|
||||
) -> ::std::os::raw::c_int,
|
||||
>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
|
||||
pub const SQLITE_VERSION: &[u8; 7usize] = b"3.41.2\0";
|
||||
pub const SQLITE_VERSION_NUMBER: i32 = 3041002;
|
||||
pub const SQLITE_SOURCE_ID: &[u8; 85usize] =
|
||||
@ -2009,11 +2021,6 @@ extern "C" {
|
||||
onoff: ::std::os::raw::c_int,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
) -> ::std::os::raw::c_int;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn sqlite3_cancel_auto_extension(
|
||||
xEntryPoint: ::std::option::Option<unsafe extern "C" fn()>,
|
||||
|
Loading…
Reference in New Issue
Block a user