Fix sqlite3_auto_extension xEntryPoint signature

This commit is contained in:
gwenn
2023-03-25 11:33:33 +01:00
parent 57a7b29b68
commit c5f0b27693
4 changed files with 47 additions and 15 deletions

View File

@@ -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")) {