pub type size_t = ::std::os::raw::c_ulong;
pub type __off_t = ::std::os::raw::c_long;
pub type __off64_t = ::std::os::raw::c_long;
pub type FILE = _IO_FILE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_marker {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_codecvt {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_wide_data {
_unused: [u8; 0],
}
pub type _IO_lock_t = ::std::os::raw::c_void;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _IO_FILE {
pub _flags: ::std::os::raw::c_int,
pub _IO_read_ptr: *mut ::std::os::raw::c_char,
pub _IO_read_end: *mut ::std::os::raw::c_char,
pub _IO_read_base: *mut ::std::os::raw::c_char,
pub _IO_write_base: *mut ::std::os::raw::c_char,
pub _IO_write_ptr: *mut ::std::os::raw::c_char,
pub _IO_write_end: *mut ::std::os::raw::c_char,
pub _IO_buf_base: *mut ::std::os::raw::c_char,
pub _IO_buf_end: *mut ::std::os::raw::c_char,
pub _IO_save_base: *mut ::std::os::raw::c_char,
pub _IO_backup_base: *mut ::std::os::raw::c_char,
pub _IO_save_end: *mut ::std::os::raw::c_char,
pub _markers: *mut _IO_marker,
pub _chain: *mut _IO_FILE,
pub _fileno: ::std::os::raw::c_int,
pub _flags2: ::std::os::raw::c_int,
pub _old_offset: __off_t,
pub _cur_column: ::std::os::raw::c_ushort,
pub _vtable_offset: ::std::os::raw::c_schar,
pub _shortbuf: [::std::os::raw::c_char; 1usize],
pub _lock: *mut _IO_lock_t,
pub _offset: __off64_t,
pub _codecvt: *mut _IO_codecvt,
pub _wide_data: *mut _IO_wide_data,
pub _freeres_list: *mut _IO_FILE,
pub _freeres_buf: *mut ::std::os::raw::c_void,
pub __pad5: size_t,
pub _mode: ::std::os::raw::c_int,
pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[test]
fn bindgen_test_layout__IO_FILE() {
assert_eq!(
::std::mem::size_of::<_IO_FILE>(),
216usize,
concat!("Size of: ", stringify!(_IO_FILE))
);
assert_eq!(
::std::mem::align_of::<_IO_FILE>(),
8usize,
concat!("Alignment of ", stringify!(_IO_FILE))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_ptr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_ptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_end as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_end)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_read_base as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_read_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_base as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_ptr as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_ptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_write_end as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_write_end)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_base as *const _ as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_buf_end as *const _ as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_buf_end)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_base as *const _ as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_backup_base as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_backup_base)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._IO_save_end as *const _ as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_IO_save_end)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._markers as *const _ as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_markers)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._chain as *const _ as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_chain)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._fileno as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_fileno)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._flags2 as *const _ as usize },
116usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_flags2)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._old_offset as *const _ as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_old_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._cur_column as *const _ as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_cur_column)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._vtable_offset as *const _ as usize },
130usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_vtable_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._shortbuf as *const _ as usize },
131usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_shortbuf)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._lock as *const _ as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_lock)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._offset as *const _ as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_offset)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._codecvt as *const _ as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_codecvt)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._wide_data as *const _ as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_wide_data)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_list as *const _ as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_list)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._freeres_buf as *const _ as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_freeres_buf)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>())).__pad5 as *const _ as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(__pad5)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._mode as *const _ as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_mode)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_IO_FILE>()))._unused2 as *const _ as usize },
196usize,
concat!(
"Offset of field: ",
stringify!(_IO_FILE),
"::",
stringify!(_unused2)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct MAPIPropertyTagList {
pub id: ::std::os::raw::c_uint,
pub name: [::std::os::raw::c_char; 128usize],
}
#[test]
fn bindgen_test_layout_MAPIPropertyTagList() {
assert_eq!(
::std::mem::size_of::<MAPIPropertyTagList>(),
132usize,
concat!("Size of: ", stringify!(MAPIPropertyTagList))
);
assert_eq!(
::std::mem::align_of::<MAPIPropertyTagList>(),
4usize,
concat!("Alignment of ", stringify!(MAPIPropertyTagList))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIPropertyTagList>())).id as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(MAPIPropertyTagList),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIPropertyTagList>())).name as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(MAPIPropertyTagList),
"::",
stringify!(name)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct renddata {
pub atyp: ::std::os::raw::c_ushort,
pub ulPosition: ::std::os::raw::c_uint,
pub dxWidth: ::std::os::raw::c_ushort,
pub dyHeight: ::std::os::raw::c_ushort,
pub dwFlags: ::std::os::raw::c_uint,
}
#[test]
fn bindgen_test_layout_renddata() {
assert_eq!(
::std::mem::size_of::<renddata>(),
16usize,
concat!("Size of: ", stringify!(renddata))
);
assert_eq!(
::std::mem::align_of::<renddata>(),
4usize,
concat!("Alignment of ", stringify!(renddata))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<renddata>())).atyp as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(renddata),
"::",
stringify!(atyp)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<renddata>())).ulPosition as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(renddata),
"::",
stringify!(ulPosition)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<renddata>())).dxWidth as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(renddata),
"::",
stringify!(dxWidth)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<renddata>())).dyHeight as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(renddata),
"::",
stringify!(dyHeight)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<renddata>())).dwFlags as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(renddata),
"::",
stringify!(dwFlags)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dtr {
pub wYear: ::std::os::raw::c_ushort,
pub wMonth: ::std::os::raw::c_ushort,
pub wDay: ::std::os::raw::c_ushort,
pub wHour: ::std::os::raw::c_ushort,
pub wMinute: ::std::os::raw::c_ushort,
pub wSecond: ::std::os::raw::c_ushort,
pub wDayOfWeek: ::std::os::raw::c_ushort,
}
#[test]
fn bindgen_test_layout_dtr() {
assert_eq!(
::std::mem::size_of::<dtr>(),
14usize,
concat!("Size of: ", stringify!(dtr))
);
assert_eq!(
::std::mem::align_of::<dtr>(),
2usize,
concat!("Alignment of ", stringify!(dtr))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wYear as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wYear)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wMonth as *const _ as usize },
2usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wMonth)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wDay as *const _ as usize },
4usize,
concat!("Offset of field: ", stringify!(dtr), "::", stringify!(wDay))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wHour as *const _ as usize },
6usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wHour)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wMinute as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wMinute)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wSecond as *const _ as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wSecond)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<dtr>())).wDayOfWeek as *const _ as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(dtr),
"::",
stringify!(wDayOfWeek)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct variableLength {
pub data: *mut ::std::os::raw::c_uchar,
pub size: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_variableLength() {
assert_eq!(
::std::mem::size_of::<variableLength>(),
16usize,
concat!("Size of: ", stringify!(variableLength))
);
assert_eq!(
::std::mem::align_of::<variableLength>(),
8usize,
concat!("Alignment of ", stringify!(variableLength))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<variableLength>())).data as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(variableLength),
"::",
stringify!(data)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<variableLength>())).size as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(variableLength),
"::",
stringify!(size)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MAPIProperty {
pub custom: ::std::os::raw::c_uint,
pub guid: [::std::os::raw::c_uchar; 16usize],
pub id: ::std::os::raw::c_uint,
pub count: ::std::os::raw::c_uint,
pub namedproperty: ::std::os::raw::c_int,
pub propnames: *mut variableLength,
pub data: *mut variableLength,
}
#[test]
fn bindgen_test_layout_MAPIProperty() {
assert_eq!(
::std::mem::size_of::<MAPIProperty>(),
48usize,
concat!("Size of: ", stringify!(MAPIProperty))
);
assert_eq!(
::std::mem::align_of::<MAPIProperty>(),
8usize,
concat!("Alignment of ", stringify!(MAPIProperty))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).custom as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(custom)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).guid as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(guid)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).id as *const _ as usize },
20usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).count as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).namedproperty as *const _ as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(namedproperty)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).propnames as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(propnames)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProperty>())).data as *const _ as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(MAPIProperty),
"::",
stringify!(data)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MAPIProps {
pub count: ::std::os::raw::c_uint,
pub properties: *mut MAPIProperty,
}
#[test]
fn bindgen_test_layout_MAPIProps() {
assert_eq!(
::std::mem::size_of::<MAPIProps>(),
16usize,
concat!("Size of: ", stringify!(MAPIProps))
);
assert_eq!(
::std::mem::align_of::<MAPIProps>(),
8usize,
concat!("Alignment of ", stringify!(MAPIProps))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProps>())).count as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(MAPIProps),
"::",
stringify!(count)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<MAPIProps>())).properties as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(MAPIProps),
"::",
stringify!(properties)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Attachment {
pub Date: dtr,
pub Title: variableLength,
pub MetaFile: variableLength,
pub CreateDate: dtr,
pub ModifyDate: dtr,
pub TransportFilename: variableLength,
pub RenderData: renddata,
pub MAPI: MAPIProps,
pub next: *mut Attachment,
pub FileData: variableLength,
pub IconData: variableLength,
}
#[test]
fn bindgen_test_layout_Attachment() {
assert_eq!(
::std::mem::size_of::<Attachment>(),
168usize,
concat!("Size of: ", stringify!(Attachment))
);
assert_eq!(
::std::mem::align_of::<Attachment>(),
8usize,
concat!("Alignment of ", stringify!(Attachment))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).Date as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(Date)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).Title as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(Title)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).MetaFile as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(MetaFile)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).CreateDate as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(CreateDate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).ModifyDate as *const _ as usize },
62usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(ModifyDate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).TransportFilename as *const _ as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(TransportFilename)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).RenderData as *const _ as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(RenderData)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).MAPI as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(MAPI)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).next as *const _ as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(next)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).FileData as *const _ as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(FileData)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<Attachment>())).IconData as *const _ as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(Attachment),
"::",
stringify!(IconData)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _TNEFIOStruct {
pub InitProc: ::std::option::Option<
unsafe extern "C" fn(IO: *mut _TNEFIOStruct) -> ::std::os::raw::c_int,
>,
pub ReadProc: ::std::option::Option<
unsafe extern "C" fn(
IO: *mut _TNEFIOStruct,
size: ::std::os::raw::c_int,
count: ::std::os::raw::c_int,
dest: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
pub CloseProc: ::std::option::Option<
unsafe extern "C" fn(IO: *mut _TNEFIOStruct) -> ::std::os::raw::c_int,
>,
pub data: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__TNEFIOStruct() {
assert_eq!(
::std::mem::size_of::<_TNEFIOStruct>(),
32usize,
concat!("Size of: ", stringify!(_TNEFIOStruct))
);
assert_eq!(
::std::mem::align_of::<_TNEFIOStruct>(),
8usize,
concat!("Alignment of ", stringify!(_TNEFIOStruct))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_TNEFIOStruct>())).InitProc as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_TNEFIOStruct),
"::",
stringify!(InitProc)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_TNEFIOStruct>())).ReadProc as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_TNEFIOStruct),
"::",
stringify!(ReadProc)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_TNEFIOStruct>())).CloseProc as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_TNEFIOStruct),
"::",
stringify!(CloseProc)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<_TNEFIOStruct>())).data as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_TNEFIOStruct),
"::",
stringify!(data)
)
);
}
pub type TNEFIOStruct = _TNEFIOStruct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TNEFFileInfo {
pub filename: *mut ::std::os::raw::c_char,
pub fptr: *mut FILE,
pub Debug: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_TNEFFileInfo() {
assert_eq!(
::std::mem::size_of::<TNEFFileInfo>(),
24usize,
concat!("Size of: ", stringify!(TNEFFileInfo))
);
assert_eq!(
::std::mem::align_of::<TNEFFileInfo>(),
8usize,
concat!("Alignment of ", stringify!(TNEFFileInfo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFFileInfo>())).filename as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(TNEFFileInfo),
"::",
stringify!(filename)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFFileInfo>())).fptr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(TNEFFileInfo),
"::",
stringify!(fptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFFileInfo>())).Debug as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(TNEFFileInfo),
"::",
stringify!(Debug)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TNEFMemInfo {
pub dataStart: *mut ::std::os::raw::c_uchar,
pub ptr: *mut ::std::os::raw::c_uchar,
pub size: ::std::os::raw::c_long,
pub Debug: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_TNEFMemInfo() {
assert_eq!(
::std::mem::size_of::<TNEFMemInfo>(),
32usize,
concat!("Size of: ", stringify!(TNEFMemInfo))
);
assert_eq!(
::std::mem::align_of::<TNEFMemInfo>(),
8usize,
concat!("Alignment of ", stringify!(TNEFMemInfo))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFMemInfo>())).dataStart as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(TNEFMemInfo),
"::",
stringify!(dataStart)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFMemInfo>())).ptr as *const _ as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(TNEFMemInfo),
"::",
stringify!(ptr)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFMemInfo>())).size as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(TNEFMemInfo),
"::",
stringify!(size)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFMemInfo>())).Debug as *const _ as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(TNEFMemInfo),
"::",
stringify!(Debug)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct TNEFStruct {
pub version: [::std::os::raw::c_char; 16usize],
pub from: variableLength,
pub subject: variableLength,
pub dateSent: dtr,
pub dateReceived: dtr,
pub messageStatus: [::std::os::raw::c_char; 10usize],
pub messageClass: [::std::os::raw::c_char; 50usize],
pub messageID: [::std::os::raw::c_char; 50usize],
pub parentID: [::std::os::raw::c_char; 50usize],
pub conversationID: [::std::os::raw::c_char; 50usize],
pub body: variableLength,
pub priority: [::std::os::raw::c_char; 10usize],
pub starting_attach: Attachment,
pub dateModified: dtr,
pub MapiProperties: MAPIProps,
pub CodePage: variableLength,
pub OriginalMessageClass: variableLength,
pub Owner: variableLength,
pub SentFor: variableLength,
pub Delegate: variableLength,
pub DateStart: dtr,
pub DateEnd: dtr,
pub AidOwner: variableLength,
pub RequestRes: ::std::os::raw::c_int,
pub Debug: ::std::os::raw::c_int,
pub IO: TNEFIOStruct,
}
#[test]
fn bindgen_test_layout_TNEFStruct() {
assert_eq!(
::std::mem::size_of::<TNEFStruct>(),
688usize,
concat!("Size of: ", stringify!(TNEFStruct))
);
assert_eq!(
::std::mem::align_of::<TNEFStruct>(),
8usize,
concat!("Alignment of ", stringify!(TNEFStruct))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).version as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(version)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).from as *const _ as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(from)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).subject as *const _ as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(subject)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).dateSent as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(dateSent)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).dateReceived as *const _ as usize },
62usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(dateReceived)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).messageStatus as *const _ as usize },
76usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(messageStatus)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).messageClass as *const _ as usize },
86usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(messageClass)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).messageID as *const _ as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(messageID)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).parentID as *const _ as usize },
186usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(parentID)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).conversationID as *const _ as usize },
236usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(conversationID)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).body as *const _ as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(body)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).priority as *const _ as usize },
304usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(priority)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).starting_attach as *const _ as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(starting_attach)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).dateModified as *const _ as usize },
488usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(dateModified)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).MapiProperties as *const _ as usize },
504usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(MapiProperties)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).CodePage as *const _ as usize },
520usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(CodePage)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).OriginalMessageClass as *const _ as usize },
536usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(OriginalMessageClass)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).Owner as *const _ as usize },
552usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(Owner)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).SentFor as *const _ as usize },
568usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(SentFor)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).Delegate as *const _ as usize },
584usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(Delegate)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).DateStart as *const _ as usize },
600usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(DateStart)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).DateEnd as *const _ as usize },
614usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(DateEnd)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).AidOwner as *const _ as usize },
632usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(AidOwner)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).RequestRes as *const _ as usize },
648usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(RequestRes)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).Debug as *const _ as usize },
652usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(Debug)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFStruct>())).IO as *const _ as usize },
656usize,
concat!(
"Offset of field: ",
stringify!(TNEFStruct),
"::",
stringify!(IO)
)
);
}
extern "C" {
pub fn SwapDWord(
p: *mut ::std::os::raw::c_uchar,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn SwapWord(
p: *mut ::std::os::raw::c_uchar,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ushort;
}
extern "C" {
pub fn TNEFInitMapi(p: *mut MAPIProps);
}
extern "C" {
pub fn TNEFInitAttachment(p: *mut Attachment);
}
extern "C" {
pub fn TNEFInitialize(TNEF: *mut TNEFStruct);
}
extern "C" {
pub fn TNEFFree(TNEF: *mut TNEFStruct);
}
extern "C" {
pub fn TNEFFreeAttachment(p: *mut Attachment);
}
extern "C" {
pub fn TNEFCheckForSignature(sig: ::std::os::raw::c_uint) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn TNEFParseMemory(
memory: *mut ::std::os::raw::c_uchar,
size: ::std::os::raw::c_long,
TNEF: *mut TNEFStruct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn TNEFParseFile(
filename: *mut ::std::os::raw::c_char,
TNEF: *mut TNEFStruct,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn TNEFParse(TNEF: *mut TNEFStruct) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn MAPIFindUserProp(p: *mut MAPIProps, ID: ::std::os::raw::c_uint) -> *mut variableLength;
}
extern "C" {
pub fn MAPIFindProperty(p: *mut MAPIProps, ID: ::std::os::raw::c_uint) -> *mut variableLength;
}
extern "C" {
pub fn MAPISysTimetoDTR(
data: *mut ::std::os::raw::c_uchar,
thedate: *mut dtr,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn MAPIPrint(p: *mut MAPIProps);
}
extern "C" {
pub fn TNEFPrintDate(Date: dtr);
}
extern "C" {
pub fn SwapDDWord(
p: *mut ::std::os::raw::c_uchar,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_ulonglong;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct TNEFHandler {
pub id: ::std::os::raw::c_uint,
pub name: [::std::os::raw::c_char; 40usize],
pub handler: ::std::option::Option<
unsafe extern "C" fn(
TNEF: *mut TNEFStruct,
id: ::std::os::raw::c_int,
data: *mut ::std::os::raw::c_char,
size: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout_TNEFHandler() {
assert_eq!(
::std::mem::size_of::<TNEFHandler>(),
56usize,
concat!("Size of: ", stringify!(TNEFHandler))
);
assert_eq!(
::std::mem::align_of::<TNEFHandler>(),
8usize,
concat!("Alignment of ", stringify!(TNEFHandler))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFHandler>())).id as *const _ as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(TNEFHandler),
"::",
stringify!(id)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFHandler>())).name as *const _ as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(TNEFHandler),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<TNEFHandler>())).handler as *const _ as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(TNEFHandler),
"::",
stringify!(handler)
)
);
}