Generate ffi.rs from most.h with bindgen
This commit is contained in:
parent
79726fdf64
commit
cccb12ddba
117
src/ffi.rs
Normal file
117
src/ffi.rs
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user