From cccb12ddba755044daef4d9994caf5588221a18e Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 4 Dec 2019 10:19:21 -0800 Subject: [PATCH] Generate ffi.rs from most.h with bindgen --- src/ffi.rs | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 src/ffi.rs diff --git a/src/ffi.rs b/src/ffi.rs new file mode 100644 index 0000000..d640905 --- /dev/null +++ b/src/ffi.rs @@ -0,0 +1,117 @@ +/* automatically generated by rust-bindgen */ + +pub const USE_MMAP: u32 = 1; +pub const HAVE_LONG_LONG: u32 = 1; +pub const SIZEOF_OFF_T: u32 = 8; +pub const SIZEOF_SHORT: u32 = 2; +pub const SIZEOF_INT: u32 = 4; +pub const SIZEOF_LONG: u32 = 8; +pub const SIZEOF_FLOAT: u32 = 4; +pub const SIZEOF_DOUBLE: u32 = 8; +pub const SIZEOF_LONG_LONG: u32 = 8; +pub const HAVE_STDLIB_H: u32 = 1; +pub const HAVE_UNISTD_H: u32 = 1; +pub const HAVE_MEMORY_H: u32 = 1; +pub const HAVE_MALLOC_H: u32 = 1; +pub const HAVE_MEMSET: u32 = 1; +pub const HAVE_MEMCPY: u32 = 1; +pub const HAVE_GETCWD: u32 = 1; +pub const HAVE_MMAP: u32 = 1; +pub const HAVE_TCGETPGRP: u32 = 1; +pub const HAVE_GETPGRP: u32 = 1; +pub const HAVE_DIRENT_H: u32 = 1; +pub const HAVE_SNPRINTF: u32 = 1; +pub const HAVE_SYS_MMAN_H: u32 = 1; +pub const MAX_PATHLEN: u32 = 1024; +pub const MOST_HAS_MMAP: u32 = 1; +pub const MOST_INT_D_FMT: &'static [u8; 4usize] = b"%ld\0"; +pub const SLANG_REGEX: u32 = 1; +pub type MOST_INT = ::std::os::raw::c_long; +pub type MOST_UINT = ::std::os::raw::c_ulong; +extern "C" { + pub static mut Most_S_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_A_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_V_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_B_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_T_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_D_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_L_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_W_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_K_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Z_Opt: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Disable_MMap: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_UTF8_Mode: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Secure_Mode: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Captive_Mode: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Program: *mut ::std::os::raw::c_char; +} +extern "C" { + pub fn most( + arg1: ::std::os::raw::c_int, + arg2: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + pub static mut Most_Global_Msg: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut Most_Want_Exit: ::std::os::raw::c_int; +} +extern "C" { + pub fn most_initialize_most(); +} +extern "C" { + pub fn most_exit_most(); +} +extern "C" { + pub fn most_exit_error(arg1: *mut ::std::os::raw::c_char, ...); +} +extern "C" { + pub fn most_usage(); +} +extern "C" { + pub fn most_malloc(arg1: ::std::os::raw::c_uint) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub fn most_realloc( + arg1: *mut ::std::os::raw::c_uchar, + arg2: ::std::os::raw::c_uint, + ) -> *mut ::std::os::raw::c_uchar; +} +extern "C" { + pub static mut Most_Tab_Width: ::std::os::raw::c_int; +} +extern "C" { + pub fn SLang_get_error() -> ::std::os::raw::c_int; +} +extern "C" { + pub fn SLang_set_error(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +}