Update bindgen. (#76)

without.crypto
Emilio Cobos Álvarez 5 years ago committed by GitHub
parent 4198202153
commit dccf69c306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lmdb-sys/Cargo.toml
  2. 1
      lmdb-sys/bindgen.rs
  3. 5
      lmdb-sys/src/bindings.rs

@ -28,7 +28,7 @@ libc = "0.2"
[build-dependencies]
pkg-config = "0.3"
cc = "1.0"
bindgen = { version = "0.51.1-oldsyn", default-features = false, optional = true }
bindgen = { version = "0.53.2", default-features = false, optional = true }
[features]
default = []

@ -50,6 +50,7 @@ pub fn generate() {
.whitelist_var("^(MDB|mdb)_.*")
.whitelist_type("^(MDB|mdb)_.*")
.whitelist_function("^(MDB|mdb)_.*")
.size_t_is_usize(true)
.ctypes_prefix("::libc")
.blacklist_item("mode_t")
.blacklist_item("filehandle_t")

@ -53,7 +53,7 @@ pub const MDB_BAD_VALSIZE: ::libc::c_int = -30781;
pub const MDB_BAD_DBI: ::libc::c_int = -30780;
pub const MDB_LAST_ERRCODE: ::libc::c_int = -30780;
pub type mdb_mode_t = mode_t;
pub type mdb_filehandle_t = filehandle_t;
pub type mdb_filehandle_t = ::libc::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MDB_env {
@ -82,6 +82,7 @@ pub struct MDB_cursor {
#[doc = " The same applies to data sizes in databases with the #MDB_DUPSORT flag."]
#[doc = " Other data items can in theory be from 0 to 0xffffffff bytes long."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MDB_val {
#[doc = "< size of the data item"]
pub mv_size: usize,
@ -167,6 +168,7 @@ pub const MDB_PREV_MULTIPLE: MDB_cursor_op = 18;
pub type MDB_cursor_op = u32;
#[doc = " @brief Statistics for a database in the environment"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MDB_stat {
#[doc = "< Size of a database page."]
#[doc = "This is currently the same for all databases."]
@ -184,6 +186,7 @@ pub struct MDB_stat {
}
#[doc = " @brief Information about the environment"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MDB_envinfo {
#[doc = "< Address of map, if fixed"]
pub me_mapaddr: *mut ::libc::c_void,

Loading…
Cancel
Save