1
2
3
/* automatically generated by rust-bindgen */

pub const _STDINT_H : u32 = 1 ; pub const _FEATURES_H : u32 = 1 ; pub const _DEFAULT_SOURCE : u32 = 1 ; pub const __USE_ISOC11 : u32 = 1 ; pub const __USE_ISOC99 : u32 = 1 ; pub const __USE_ISOC95 : u32 = 1 ; pub const __USE_POSIX_IMPLICITLY : u32 = 1 ; pub const _POSIX_SOURCE : u32 = 1 ; pub const _POSIX_C_SOURCE : u32 = 200809 ; pub const __USE_POSIX : u32 = 1 ; pub const __USE_POSIX2 : u32 = 1 ; pub const __USE_POSIX199309 : u32 = 1 ; pub const __USE_POSIX199506 : u32 = 1 ; pub const __USE_XOPEN2K : u32 = 1 ; pub const __USE_XOPEN2K8 : u32 = 1 ; pub const _ATFILE_SOURCE : u32 = 1 ; pub const __USE_MISC : u32 = 1 ; pub const __USE_ATFILE : u32 = 1 ; pub const __USE_FORTIFY_LEVEL : u32 = 0 ; pub const __GLIBC_USE_DEPRECATED_GETS : u32 = 0 ; pub const _STDC_PREDEF_H : u32 = 1 ; pub const __STDC_IEC_559__ : u32 = 1 ; pub const __STDC_IEC_559_COMPLEX__ : u32 = 1 ; pub const __STDC_ISO_10646__ : u32 = 201706 ; pub const __STDC_NO_THREADS__ : u32 = 1 ; pub const __GNU_LIBRARY__ : u32 = 6 ; pub const __GLIBC__ : u32 = 2 ; pub const __GLIBC_MINOR__ : u32 = 27 ; pub const _SYS_CDEFS_H : u32 = 1 ; pub const __glibc_c99_flexarr_available : u32 = 1 ; pub const __WORDSIZE : u32 = 64 ; pub const __WORDSIZE_TIME64_COMPAT32 : u32 = 1 ; pub const __SYSCALL_WORDSIZE : u32 = 64 ; pub const __HAVE_GENERIC_SELECTION : u32 = 1 ; pub const __GLIBC_USE_LIB_EXT2 : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_BFP_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_FUNCS_EXT : u32 = 0 ; pub const __GLIBC_USE_IEC_60559_TYPES_EXT : u32 = 0 ; pub const _BITS_TYPES_H : u32 = 1 ; pub const _BITS_TYPESIZES_H : u32 = 1 ; pub const __OFF_T_MATCHES_OFF64_T : u32 = 1 ; pub const __INO_T_MATCHES_INO64_T : u32 = 1 ; pub const __RLIM_T_MATCHES_RLIM64_T : u32 = 1 ; pub const __FD_SETSIZE : u32 = 1024 ; pub const _BITS_WCHAR_H : u32 = 1 ; pub const _BITS_STDINT_INTN_H : u32 = 1 ; pub const _BITS_STDINT_UINTN_H : u32 = 1 ; pub const INT8_MIN : i32 = -128 ; pub const INT16_MIN : i32 = -32768 ; pub const INT32_MIN : i32 = -2147483648 ; pub const INT8_MAX : u32 = 127 ; pub const INT16_MAX : u32 = 32767 ; pub const INT32_MAX : u32 = 2147483647 ; pub const UINT8_MAX : u32 = 255 ; pub const UINT16_MAX : u32 = 65535 ; pub const UINT32_MAX : u32 = 4294967295 ; pub const INT_LEAST8_MIN : i32 = -128 ; pub const INT_LEAST16_MIN : i32 = -32768 ; pub const INT_LEAST32_MIN : i32 = -2147483648 ; pub const INT_LEAST8_MAX : u32 = 127 ; pub const INT_LEAST16_MAX : u32 = 32767 ; pub const INT_LEAST32_MAX : u32 = 2147483647 ; pub const UINT_LEAST8_MAX : u32 = 255 ; pub const UINT_LEAST16_MAX : u32 = 65535 ; pub const UINT_LEAST32_MAX : u32 = 4294967295 ; pub const INT_FAST8_MIN : i32 = -128 ; pub const INT_FAST16_MIN : i64 = -9223372036854775808 ; pub const INT_FAST32_MIN : i64 = -9223372036854775808 ; pub const INT_FAST8_MAX : u32 = 127 ; pub const INT_FAST16_MAX : u64 = 9223372036854775807 ; pub const INT_FAST32_MAX : u64 = 9223372036854775807 ; pub const UINT_FAST8_MAX : u32 = 255 ; pub const UINT_FAST16_MAX : i32 = -1 ; pub const UINT_FAST32_MAX : i32 = -1 ; pub const INTPTR_MIN : i64 = -9223372036854775808 ; pub const INTPTR_MAX : u64 = 9223372036854775807 ; pub const UINTPTR_MAX : i32 = -1 ; pub const PTRDIFF_MIN : i64 = -9223372036854775808 ; pub const PTRDIFF_MAX : u64 = 9223372036854775807 ; pub const SIG_ATOMIC_MIN : i32 = -2147483648 ; pub const SIG_ATOMIC_MAX : u32 = 2147483647 ; pub const SIZE_MAX : i32 = -1 ; pub const WINT_MIN : u32 = 0 ; pub const WINT_MAX : u32 = 4294967295 ; pub const gestalt_Version : u32 = 0 ; pub const gestalt_CharInput : u32 = 1 ; pub const gestalt_LineInput : u32 = 2 ; pub const gestalt_CharOutput : u32 = 3 ; pub const gestalt_CharOutput_CannotPrint : u32 = 0 ; pub const gestalt_CharOutput_ApproxPrint : u32 = 1 ; pub const gestalt_CharOutput_ExactPrint : u32 = 2 ; pub const gestalt_MouseInput : u32 = 4 ; pub const gestalt_Timer : u32 = 5 ; pub const gestalt_Graphics : u32 = 6 ; pub const gestalt_DrawImage : u32 = 7 ; pub const gestalt_Sound : u32 = 8 ; pub const gestalt_SoundVolume : u32 = 9 ; pub const gestalt_SoundNotify : u32 = 10 ; pub const gestalt_Hyperlinks : u32 = 11 ; pub const gestalt_HyperlinkInput : u32 = 12 ; pub const gestalt_SoundMusic : u32 = 13 ; pub const gestalt_GraphicsTransparency : u32 = 14 ; pub const gestalt_Unicode : u32 = 15 ; pub const gestalt_UnicodeNorm : u32 = 16 ; pub const gestalt_LineInputEcho : u32 = 17 ; pub const gestalt_LineTerminators : u32 = 18 ; pub const gestalt_LineTerminatorKey : u32 = 19 ; pub const gestalt_DateTime : u32 = 20 ; pub const gestalt_Sound2 : u32 = 21 ; pub const gestalt_ResourceStream : u32 = 22 ; pub const gestalt_GraphicsCharInput : u32 = 23 ; pub const evtype_None : u32 = 0 ; pub const evtype_Timer : u32 = 1 ; pub const evtype_CharInput : u32 = 2 ; pub const evtype_LineInput : u32 = 3 ; pub const evtype_MouseInput : u32 = 4 ; pub const evtype_Arrange : u32 = 5 ; pub const evtype_Redraw : u32 = 6 ; pub const evtype_SoundNotify : u32 = 7 ; pub const evtype_Hyperlink : u32 = 8 ; pub const evtype_VolumeNotify : u32 = 9 ; pub const keycode_Unknown : u32 = 4294967295 ; pub const keycode_Left : u32 = 4294967294 ; pub const keycode_Right : u32 = 4294967293 ; pub const keycode_Up : u32 = 4294967292 ; pub const keycode_Down : u32 = 4294967291 ; pub const keycode_Return : u32 = 4294967290 ; pub const keycode_Delete : u32 = 4294967289 ; pub const keycode_Escape : u32 = 4294967288 ; pub const keycode_Tab : u32 = 4294967287 ; pub const keycode_PageUp : u32 = 4294967286 ; pub const keycode_PageDown : u32 = 4294967285 ; pub const keycode_Home : u32 = 4294967284 ; pub const keycode_End : u32 = 4294967283 ; pub const keycode_Func1 : u32 = 4294967279 ; pub const keycode_Func2 : u32 = 4294967278 ; pub const keycode_Func3 : u32 = 4294967277 ; pub const keycode_Func4 : u32 = 4294967276 ; pub const keycode_Func5 : u32 = 4294967275 ; pub const keycode_Func6 : u32 = 4294967274 ; pub const keycode_Func7 : u32 = 4294967273 ; pub const keycode_Func8 : u32 = 4294967272 ; pub const keycode_Func9 : u32 = 4294967271 ; pub const keycode_Func10 : u32 = 4294967270 ; pub const keycode_Func11 : u32 = 4294967269 ; pub const keycode_Func12 : u32 = 4294967268 ; pub const keycode_MAXVAL : u32 = 28 ; pub const style_Normal : u32 = 0 ; pub const style_Emphasized : u32 = 1 ; pub const style_Preformatted : u32 = 2 ; pub const style_Header : u32 = 3 ; pub const style_Subheader : u32 = 4 ; pub const style_Alert : u32 = 5 ; pub const style_Note : u32 = 6 ; pub const style_BlockQuote : u32 = 7 ; pub const style_Input : u32 = 8 ; pub const style_User1 : u32 = 9 ; pub const style_User2 : u32 = 10 ; pub const style_NUMSTYLES : u32 = 11 ; pub const wintype_AllTypes : u32 = 0 ; pub const wintype_Pair : u32 = 1 ; pub const wintype_Blank : u32 = 2 ; pub const wintype_TextBuffer : u32 = 3 ; pub const wintype_TextGrid : u32 = 4 ; pub const wintype_Graphics : u32 = 5 ; pub const winmethod_Left : u32 = 0 ; pub const winmethod_Right : u32 = 1 ; pub const winmethod_Above : u32 = 2 ; pub const winmethod_Below : u32 = 3 ; pub const winmethod_DirMask : u32 = 15 ; pub const winmethod_Fixed : u32 = 16 ; pub const winmethod_Proportional : u32 = 32 ; pub const winmethod_DivisionMask : u32 = 240 ; pub const winmethod_Border : u32 = 0 ; pub const winmethod_NoBorder : u32 = 256 ; pub const winmethod_BorderMask : u32 = 256 ; pub const fileusage_Data : u32 = 0 ; pub const fileusage_SavedGame : u32 = 1 ; pub const fileusage_Transcript : u32 = 2 ; pub const fileusage_InputRecord : u32 = 3 ; pub const fileusage_TypeMask : u32 = 15 ; pub const fileusage_TextMode : u32 = 256 ; pub const fileusage_BinaryMode : u32 = 0 ; pub const filemode_Write : u32 = 1 ; pub const filemode_Read : u32 = 2 ; pub const filemode_ReadWrite : u32 = 3 ; pub const filemode_WriteAppend : u32 = 5 ; pub const seekmode_Start : u32 = 0 ; pub const seekmode_Current : u32 = 1 ; pub const seekmode_End : u32 = 2 ; pub const stylehint_Indentation : u32 = 0 ; pub const stylehint_ParaIndentation : u32 = 1 ; pub const stylehint_Justification : u32 = 2 ; pub const stylehint_Size : u32 = 3 ; pub const stylehint_Weight : u32 = 4 ; pub const stylehint_Oblique : u32 = 5 ; pub const stylehint_Proportional : u32 = 6 ; pub const stylehint_TextColor : u32 = 7 ; pub const stylehint_BackColor : u32 = 8 ; pub const stylehint_ReverseColor : u32 = 9 ; pub const stylehint_NUMHINTS : u32 = 10 ; pub const stylehint_just_LeftFlush : u32 = 0 ; pub const stylehint_just_LeftRight : u32 = 1 ; pub const stylehint_just_Centered : u32 = 2 ; pub const stylehint_just_RightFlush : u32 = 3 ; pub const imagealign_InlineUp : u32 = 1 ; pub const imagealign_InlineDown : u32 = 2 ; pub const imagealign_InlineCenter : u32 = 3 ; pub const imagealign_MarginLeft : u32 = 4 ; pub const imagealign_MarginRight : u32 = 5 ; pub const TRUE : u32 = 1 ; pub const FALSE : u32 = 0 ; pub const NULL : u32 = 0 ; pub const VERIFY_MEMORY_ACCESS : u32 = 1 ; pub const FLOAT_SUPPORT : u32 = 1 ; pub const SERIALIZE_CACHE_RAM : u32 = 1 ; pub const MAX_OPERANDS : u32 = 8 ; pub const modeform_Load : u32 = 1 ; pub const modeform_Store : u32 = 2 ; pub type __u_char = :: std :: os :: raw :: c_uchar ; pub type __u_short = :: std :: os :: raw :: c_ushort ; pub type __u_int = :: std :: os :: raw :: c_uint ; pub type __u_long = :: std :: os :: raw :: c_ulong ; pub type __int8_t = :: std :: os :: raw :: c_schar ; pub type __uint8_t = :: std :: os :: raw :: c_uchar ; pub type __int16_t = :: std :: os :: raw :: c_short ; pub type __uint16_t = :: std :: os :: raw :: c_ushort ; pub type __int32_t = :: std :: os :: raw :: c_int ; pub type __uint32_t = :: std :: os :: raw :: c_uint ; pub type __int64_t = :: std :: os :: raw :: c_long ; pub type __uint64_t = :: std :: os :: raw :: c_ulong ; pub type __quad_t = :: std :: os :: raw :: c_long ; pub type __u_quad_t = :: std :: os :: raw :: c_ulong ; pub type __intmax_t = :: std :: os :: raw :: c_long ; pub type __uintmax_t = :: std :: os :: raw :: c_ulong ; pub type __dev_t = :: std :: os :: raw :: c_ulong ; pub type __uid_t = :: std :: os :: raw :: c_uint ; pub type __gid_t = :: std :: os :: raw :: c_uint ; pub type __ino_t = :: std :: os :: raw :: c_ulong ; pub type __ino64_t = :: std :: os :: raw :: c_ulong ; pub type __mode_t = :: std :: os :: raw :: c_uint ; pub type __nlink_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 __pid_t = :: std :: os :: raw :: c_int ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct __fsid_t { pub __val : [ :: std :: os :: raw :: c_int ; 2usize ] , } # [ test ] fn bindgen_test_layout___fsid_t ( ) { assert_eq ! ( :: std :: mem :: size_of :: < __fsid_t > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < __fsid_t > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( __fsid_t ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < __fsid_t > ( ) ) ) . __val as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( __fsid_t ) , "::" , stringify ! ( __val ) ) ) ; } pub type __clock_t = :: std :: os :: raw :: c_long ; pub type __rlim_t = :: std :: os :: raw :: c_ulong ; pub type __rlim64_t = :: std :: os :: raw :: c_ulong ; pub type __id_t = :: std :: os :: raw :: c_uint ; pub type __time_t = :: std :: os :: raw :: c_long ; pub type __useconds_t = :: std :: os :: raw :: c_uint ; pub type __suseconds_t = :: std :: os :: raw :: c_long ; pub type __daddr_t = :: std :: os :: raw :: c_int ; pub type __key_t = :: std :: os :: raw :: c_int ; pub type __clockid_t = :: std :: os :: raw :: c_int ; pub type __timer_t = * mut :: std :: os :: raw :: c_void ; pub type __blksize_t = :: std :: os :: raw :: c_long ; pub type __blkcnt_t = :: std :: os :: raw :: c_long ; pub type __blkcnt64_t = :: std :: os :: raw :: c_long ; pub type __fsblkcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsblkcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt_t = :: std :: os :: raw :: c_ulong ; pub type __fsfilcnt64_t = :: std :: os :: raw :: c_ulong ; pub type __fsword_t = :: std :: os :: raw :: c_long ; pub type __ssize_t = :: std :: os :: raw :: c_long ; pub type __syscall_slong_t = :: std :: os :: raw :: c_long ; pub type __syscall_ulong_t = :: std :: os :: raw :: c_ulong ; pub type __loff_t = __off64_t ; pub type __caddr_t = * mut :: std :: os :: raw :: c_char ; pub type __intptr_t = :: std :: os :: raw :: c_long ; pub type __socklen_t = :: std :: os :: raw :: c_uint ; pub type __sig_atomic_t = :: std :: os :: raw :: c_int ; pub type int_least8_t = :: std :: os :: raw :: c_schar ; pub type int_least16_t = :: std :: os :: raw :: c_short ; pub type int_least32_t = :: std :: os :: raw :: c_int ; pub type int_least64_t = :: std :: os :: raw :: c_long ; pub type uint_least8_t = :: std :: os :: raw :: c_uchar ; pub type uint_least16_t = :: std :: os :: raw :: c_ushort ; pub type uint_least32_t = :: std :: os :: raw :: c_uint ; pub type uint_least64_t = :: std :: os :: raw :: c_ulong ; pub type int_fast8_t = :: std :: os :: raw :: c_schar ; pub type int_fast16_t = :: std :: os :: raw :: c_long ; pub type int_fast32_t = :: std :: os :: raw :: c_long ; pub type int_fast64_t = :: std :: os :: raw :: c_long ; pub type uint_fast8_t = :: std :: os :: raw :: c_uchar ; pub type uint_fast16_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast32_t = :: std :: os :: raw :: c_ulong ; pub type uint_fast64_t = :: std :: os :: raw :: c_ulong ; pub type intmax_t = __intmax_t ; pub type uintmax_t = __uintmax_t ; pub type glui32 = u32 ; pub type glsi32 = i32 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glk_window_struct { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glk_stream_struct { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glk_fileref_struct { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glk_schannel_struct { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] pub struct event_struct { pub type_ : glui32 , pub win : winid_t , pub val1 : glui32 , pub val2 : glui32 , } # [ test ] fn bindgen_test_layout_event_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < event_struct > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( event_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < event_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( event_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < event_struct > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( event_struct ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < event_struct > ( ) ) ) . win as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( event_struct ) , "::" , stringify ! ( win ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < event_struct > ( ) ) ) . val1 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( event_struct ) , "::" , stringify ! ( val1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < event_struct > ( ) ) ) . val2 as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( event_struct ) , "::" , stringify ! ( val2 ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct stream_result_struct { pub readcount : glui32 , pub writecount : glui32 , } # [ test ] fn bindgen_test_layout_stream_result_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < stream_result_struct > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( stream_result_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < stream_result_struct > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( stream_result_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < stream_result_struct > ( ) ) ) . readcount as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( stream_result_struct ) , "::" , stringify ! ( readcount ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < stream_result_struct > ( ) ) ) . writecount as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( stream_result_struct ) , "::" , stringify ! ( writecount ) ) ) ; } extern "C" { pub fn glk_main ( ) ; } extern "C" { pub fn glk_exit ( ) ; } extern "C" { pub fn glk_set_interrupt_handler ( func : :: std :: option :: Option < unsafe extern "C" fn ( ) > ) ; } extern "C" { pub fn glk_tick ( ) ; } extern "C" { pub fn glk_gestalt ( sel : glui32 , val : glui32 ) -> glui32 ; } extern "C" { pub fn glk_gestalt_ext ( sel : glui32 , val : glui32 , arr : * mut glui32 , arrlen : glui32 ) -> glui32 ; } extern "C" { pub fn glk_char_to_lower ( ch : :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn glk_char_to_upper ( ch : :: std :: os :: raw :: c_uchar ) -> :: std :: os :: raw :: c_uchar ; } extern "C" { pub fn glk_window_get_root ( ) -> winid_t ; } extern "C" { pub fn glk_window_open ( split : winid_t , method : glui32 , size : glui32 , wintype : glui32 , rock : glui32 ) -> winid_t ; } extern "C" { pub fn glk_window_close ( win : winid_t , result : * mut stream_result_t ) ; } extern "C" { pub fn glk_window_get_size ( win : winid_t , widthptr : * mut glui32 , heightptr : * mut glui32 ) ; } extern "C" { pub fn glk_window_set_arrangement ( win : winid_t , method : glui32 , size : glui32 , keywin : winid_t ) ; } extern "C" { pub fn glk_window_get_arrangement ( win : winid_t , methodptr : * mut glui32 , sizeptr : * mut glui32 , keywinptr : * mut winid_t ) ; } extern "C" { pub fn glk_window_iterate ( win : winid_t , rockptr : * mut glui32 ) -> winid_t ; } extern "C" { pub fn glk_window_get_rock ( win : winid_t ) -> glui32 ; } extern "C" { pub fn glk_window_get_type ( win : winid_t ) -> glui32 ; } extern "C" { pub fn glk_window_get_parent ( win : winid_t ) -> winid_t ; } extern "C" { pub fn glk_window_get_sibling ( win : winid_t ) -> winid_t ; } extern "C" { pub fn glk_window_clear ( win : winid_t ) ; } extern "C" { pub fn glk_window_move_cursor ( win : winid_t , xpos : glui32 , ypos : glui32 ) ; } extern "C" { pub fn glk_window_get_stream ( win : winid_t ) -> strid_t ; } extern "C" { pub fn glk_window_set_echo_stream ( win : winid_t , str : strid_t ) ; } extern "C" { pub fn glk_window_get_echo_stream ( win : winid_t ) -> strid_t ; } extern "C" { pub fn glk_set_window ( win : winid_t ) ; } extern "C" { pub fn glk_stream_open_file ( fileref : frefid_t , fmode : glui32 , rock : glui32 ) -> strid_t ; } extern "C" { pub fn glk_stream_open_memory ( buf : * mut :: std :: os :: raw :: c_char , buflen : glui32 , fmode : glui32 , rock : glui32 ) -> strid_t ; } extern "C" { pub fn glk_stream_close ( str : strid_t , result : * mut stream_result_t ) ; } extern "C" { pub fn glk_stream_iterate ( str : strid_t , rockptr : * mut glui32 ) -> strid_t ; } extern "C" { pub fn glk_stream_get_rock ( str : strid_t ) -> glui32 ; } extern "C" { pub fn glk_stream_set_position ( str : strid_t , pos : glsi32 , seekmode : glui32 ) ; } extern "C" { pub fn glk_stream_get_position ( str : strid_t ) -> glui32 ; } extern "C" { pub fn glk_stream_set_current ( str : strid_t ) ; } extern "C" { pub fn glk_stream_get_current ( ) -> strid_t ; } extern "C" { pub fn glk_put_char ( ch : :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn glk_put_char_stream ( str : strid_t , ch : :: std :: os :: raw :: c_uchar ) ; } extern "C" { pub fn glk_put_string ( s : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn glk_put_string_stream ( str : strid_t , s : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn glk_put_buffer ( buf : * mut :: std :: os :: raw :: c_char , len : glui32 ) ; } extern "C" { pub fn glk_put_buffer_stream ( str : strid_t , buf : * mut :: std :: os :: raw :: c_char , len : glui32 ) ; } extern "C" { pub fn glk_set_style ( styl : glui32 ) ; } extern "C" { pub fn glk_set_style_stream ( str : strid_t , styl : glui32 ) ; } extern "C" { pub fn glk_get_char_stream ( str : strid_t ) -> glsi32 ; } extern "C" { pub fn glk_get_line_stream ( str : strid_t , buf : * mut :: std :: os :: raw :: c_char , len : glui32 ) -> glui32 ; } extern "C" { pub fn glk_get_buffer_stream ( str : strid_t , buf : * mut :: std :: os :: raw :: c_char , len : glui32 ) -> glui32 ; } extern "C" { pub fn glk_stylehint_set ( wintype : glui32 , styl : glui32 , hint : glui32 , val : glsi32 ) ; } extern "C" { pub fn glk_stylehint_clear ( wintype : glui32 , styl : glui32 , hint : glui32 ) ; } extern "C" { pub fn glk_style_distinguish ( win : winid_t , styl1 : glui32 , styl2 : glui32 ) -> glui32 ; } extern "C" { pub fn glk_style_measure ( win : winid_t , styl : glui32 , hint : glui32 , result : * mut glui32 ) -> glui32 ; } extern "C" { pub fn glk_fileref_create_temp ( usage : glui32 , rock : glui32 ) -> frefid_t ; } extern "C" { pub fn glk_fileref_create_by_name ( usage : glui32 , name : * mut :: std :: os :: raw :: c_char , rock : glui32 ) -> frefid_t ; } extern "C" { pub fn glk_fileref_create_by_prompt ( usage : glui32 , fmode : glui32 , rock : glui32 ) -> frefid_t ; } extern "C" { pub fn glk_fileref_create_from_fileref ( usage : glui32 , fref : frefid_t , rock : glui32 ) -> frefid_t ; } extern "C" { pub fn glk_fileref_destroy ( fref : frefid_t ) ; } extern "C" { pub fn glk_fileref_iterate ( fref : frefid_t , rockptr : * mut glui32 ) -> frefid_t ; } extern "C" { pub fn glk_fileref_get_rock ( fref : frefid_t ) -> glui32 ; } extern "C" { pub fn glk_fileref_delete_file ( fref : frefid_t ) ; } extern "C" { pub fn glk_fileref_does_file_exist ( fref : frefid_t ) -> glui32 ; } extern "C" { pub fn glk_select ( event : * mut event_t ) ; } extern "C" { pub fn glk_select_poll ( event : * mut event_t ) ; } extern "C" { pub fn glk_request_timer_events ( millisecs : glui32 ) ; } extern "C" { pub fn glk_request_line_event ( win : winid_t , buf : * mut :: std :: os :: raw :: c_char , maxlen : glui32 , initlen : glui32 ) ; } extern "C" { pub fn glk_request_char_event ( win : winid_t ) ; } extern "C" { pub fn glk_request_mouse_event ( win : winid_t ) ; } extern "C" { pub fn glk_cancel_line_event ( win : winid_t , event : * mut event_t ) ; } extern "C" { pub fn glk_cancel_char_event ( win : winid_t ) ; } extern "C" { pub fn glk_cancel_mouse_event ( win : winid_t ) ; } extern "C" { pub fn glk_set_echo_line_event ( win : winid_t , val : glui32 ) ; } extern "C" { pub fn glk_set_terminators_line_event ( win : winid_t , keycodes : * mut glui32 , count : glui32 ) ; } extern "C" { pub fn glk_buffer_to_lower_case_uni ( buf : * mut glui32 , len : glui32 , numchars : glui32 ) -> glui32 ; } extern "C" { pub fn glk_buffer_to_upper_case_uni ( buf : * mut glui32 , len : glui32 , numchars : glui32 ) -> glui32 ; } extern "C" { pub fn glk_buffer_to_title_case_uni ( buf : * mut glui32 , len : glui32 , numchars : glui32 , lowerrest : glui32 ) -> glui32 ; } extern "C" { pub fn glk_put_char_uni ( ch : glui32 ) ; } extern "C" { pub fn glk_put_string_uni ( s : * mut glui32 ) ; } extern "C" { pub fn glk_put_buffer_uni ( buf : * mut glui32 , len : glui32 ) ; } extern "C" { pub fn glk_put_char_stream_uni ( str : strid_t , ch : glui32 ) ; } extern "C" { pub fn glk_put_string_stream_uni ( str : strid_t , s : * mut glui32 ) ; } extern "C" { pub fn glk_put_buffer_stream_uni ( str : strid_t , buf : * mut glui32 , len : glui32 ) ; } extern "C" { pub fn glk_get_char_stream_uni ( str : strid_t ) -> glsi32 ; } extern "C" { pub fn glk_get_buffer_stream_uni ( str : strid_t , buf : * mut glui32 , len : glui32 ) -> glui32 ; } extern "C" { pub fn glk_get_line_stream_uni ( str : strid_t , buf : * mut glui32 , len : glui32 ) -> glui32 ; } extern "C" { pub fn glk_stream_open_file_uni ( fileref : frefid_t , fmode : glui32 , rock : glui32 ) -> strid_t ; } extern "C" { pub fn glk_stream_open_memory_uni ( buf : * mut glui32 , buflen : glui32 , fmode : glui32 , rock : glui32 ) -> strid_t ; } extern "C" { pub fn glk_request_char_event_uni ( win : winid_t ) ; } extern "C" { pub fn glk_request_line_event_uni ( win : winid_t , buf : * mut glui32 , maxlen : glui32 , initlen : glui32 ) ; } extern "C" { pub fn glk_buffer_canon_decompose_uni ( buf : * mut glui32 , len : glui32 , numchars : glui32 ) -> glui32 ; } extern "C" { pub fn glk_buffer_canon_normalize_uni ( buf : * mut glui32 , len : glui32 , numchars : glui32 ) -> glui32 ; } extern "C" { pub fn glk_image_draw ( win : winid_t , image : glui32 , val1 : glsi32 , val2 : glsi32 ) -> glui32 ; } extern "C" { pub fn glk_image_draw_scaled ( win : winid_t , image : glui32 , val1 : glsi32 , val2 : glsi32 , width : glui32 , height : glui32 ) -> glui32 ; } extern "C" { pub fn glk_image_get_info ( image : glui32 , width : * mut glui32 , height : * mut glui32 ) -> glui32 ; } extern "C" { pub fn glk_window_flow_break ( win : winid_t ) ; } extern "C" { pub fn glk_window_erase_rect ( win : winid_t , left : glsi32 , top : glsi32 , width : glui32 , height : glui32 ) ; } extern "C" { pub fn glk_window_fill_rect ( win : winid_t , color : glui32 , left : glsi32 , top : glsi32 , width : glui32 , height : glui32 ) ; } extern "C" { pub fn glk_window_set_background_color ( win : winid_t , color : glui32 ) ; } extern "C" { pub fn glk_schannel_create ( rock : glui32 ) -> schanid_t ; } extern "C" { pub fn glk_schannel_destroy ( chan : schanid_t ) ; } extern "C" { pub fn glk_schannel_iterate ( chan : schanid_t , rockptr : * mut glui32 ) -> schanid_t ; } extern "C" { pub fn glk_schannel_get_rock ( chan : schanid_t ) -> glui32 ; } extern "C" { pub fn glk_schannel_play ( chan : schanid_t , snd : glui32 ) -> glui32 ; } extern "C" { pub fn glk_schannel_play_ext ( chan : schanid_t , snd : glui32 , repeats : glui32 , notify : glui32 ) -> glui32 ; } extern "C" { pub fn glk_schannel_stop ( chan : schanid_t ) ; } extern "C" { pub fn glk_schannel_set_volume ( chan : schanid_t , vol : glui32 ) ; } extern "C" { pub fn glk_sound_load_hint ( snd : glui32 , flag : glui32 ) ; } extern "C" { pub fn glk_schannel_create_ext ( rock : glui32 , volume : glui32 ) -> schanid_t ; } extern "C" { pub fn glk_schannel_play_multi ( chanarray : * mut schanid_t , chancount : glui32 , sndarray : * mut glui32 , soundcount : glui32 , notify : glui32 ) -> glui32 ; } extern "C" { pub fn glk_schannel_pause ( chan : schanid_t ) ; } extern "C" { pub fn glk_schannel_unpause ( chan : schanid_t ) ; } extern "C" { pub fn glk_schannel_set_volume_ext ( chan : schanid_t , vol : glui32 , duration : glui32 , notify : glui32 ) ; } extern "C" { pub fn glk_set_hyperlink ( linkval : glui32 ) ; } extern "C" { pub fn glk_set_hyperlink_stream ( str : strid_t , linkval : glui32 ) ; } extern "C" { pub fn glk_request_hyperlink_event ( win : winid_t ) ; } extern "C" { pub fn glk_cancel_hyperlink_event ( win : winid_t ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glktimeval_struct { pub high_sec : glsi32 , pub low_sec : glui32 , pub microsec : glsi32 , } # [ test ] fn bindgen_test_layout_glktimeval_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < glktimeval_struct > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( glktimeval_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < glktimeval_struct > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( glktimeval_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glktimeval_struct > ( ) ) ) . high_sec as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( glktimeval_struct ) , "::" , stringify ! ( high_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glktimeval_struct > ( ) ) ) . low_sec as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( glktimeval_struct ) , "::" , stringify ! ( low_sec ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glktimeval_struct > ( ) ) ) . microsec as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( glktimeval_struct ) , "::" , stringify ! ( microsec ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct glkdate_struct { pub year : glsi32 , pub month : glsi32 , pub day : glsi32 , pub weekday : glsi32 , pub hour : glsi32 , pub minute : glsi32 , pub second : glsi32 , pub microsec : glsi32 , } # [ test ] fn bindgen_test_layout_glkdate_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < glkdate_struct > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( glkdate_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < glkdate_struct > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( glkdate_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . year as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( year ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . month as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( month ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . day as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( day ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . weekday as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( weekday ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . hour as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( hour ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . minute as * const _ as usize } , 20usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( minute ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . second as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( second ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < glkdate_struct > ( ) ) ) . microsec as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( glkdate_struct ) , "::" , stringify ! ( microsec ) ) ) ; } extern "C" { pub fn glk_current_time ( time : * mut glktimeval_t ) ; } extern "C" { pub fn glk_current_simple_time ( factor : glui32 ) -> glsi32 ; } extern "C" { pub fn glk_time_to_date_utc ( time : * mut glktimeval_t , date : * mut glkdate_t ) ; } extern "C" { pub fn glk_time_to_date_local ( time : * mut glktimeval_t , date : * mut glkdate_t ) ; } extern "C" { pub fn glk_simple_time_to_date_utc ( time : glsi32 , factor : glui32 , date : * mut glkdate_t ) ; } extern "C" { pub fn glk_simple_time_to_date_local ( time : glsi32 , factor : glui32 , date : * mut glkdate_t ) ; } extern "C" { pub fn glk_date_to_time_utc ( date : * mut glkdate_t , time : * mut glktimeval_t ) ; } extern "C" { pub fn glk_date_to_time_local ( date : * mut glkdate_t , time : * mut glktimeval_t ) ; } extern "C" { pub fn glk_date_to_simple_time_utc ( date : * mut glkdate_t , factor : glui32 ) -> glsi32 ; } extern "C" { pub fn glk_date_to_simple_time_local ( date : * mut glkdate_t , factor : glui32 ) -> glsi32 ; } extern "C" { pub fn glk_stream_open_resource ( filenum : glui32 , rock : glui32 ) -> strid_t ; } extern "C" { pub fn glk_stream_open_resource_uni ( filenum : glui32 , rock : glui32 ) -> strid_t ; } pub type glui16 = u16 ; pub type glsi16 = i16 ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct oparg_struct { pub desttype : glui32 , pub value : glui32 , } # [ test ] fn bindgen_test_layout_oparg_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < oparg_struct > ( ) , 8usize , concat ! ( "Size of: " , stringify ! ( oparg_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < oparg_struct > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( oparg_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < oparg_struct > ( ) ) ) . desttype as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( oparg_struct ) , "::" , stringify ! ( desttype ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < oparg_struct > ( ) ) ) . value as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( oparg_struct ) , "::" , stringify ! ( value ) ) ) ; } pub type oparg_t = oparg_struct ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct operandlist_struct { pub num_ops : :: std :: os :: raw :: c_int , pub arg_size : :: std :: os :: raw :: c_int , pub formlist : * mut :: std :: os :: raw :: c_int , } # [ test ] fn bindgen_test_layout_operandlist_struct ( ) { assert_eq ! ( :: std :: mem :: size_of :: < operandlist_struct > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( operandlist_struct ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < operandlist_struct > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( operandlist_struct ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < operandlist_struct > ( ) ) ) . num_ops as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( operandlist_struct ) , "::" , stringify ! ( num_ops ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < operandlist_struct > ( ) ) ) . arg_size as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( operandlist_struct ) , "::" , stringify ! ( arg_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < operandlist_struct > ( ) ) ) . formlist as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( operandlist_struct ) , "::" , stringify ! ( formlist ) ) ) ; } pub type operandlist_t = operandlist_struct ; extern "C" { pub static mut vm_exited_cleanly : :: std :: os :: raw :: c_int ; } extern "C" { pub static mut gamefile : strid_t ; } extern "C" { pub static mut gamefile_start : glui32 ; } extern "C" { pub static mut gamefile_len : glui32 ; } extern "C" { pub static mut init_err : * mut :: std :: os :: raw :: c_char ; } extern "C" { pub static mut init_err2 : * mut :: std :: os :: raw :: c_char ; } extern "C" { pub static mut memmap : * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub static mut stack : * mut :: std :: os :: raw :: c_uchar ; } extern "C" { pub static mut ramstart : glui32 ; } extern "C" { pub static mut endgamefile : glui32 ; } extern "C" { pub static mut origendmem : glui32 ; } extern "C" { pub static mut stacksize : glui32 ; } extern "C" { pub static mut startfuncaddr : glui32 ; } extern "C" { pub static mut checksum : glui32 ; } extern "C" { pub static mut stackptr : glui32 ; } extern "C" { pub static mut frameptr : glui32 ; } extern "C" { pub static mut pc : glui32 ; } extern "C" { pub static mut origstringtable : glui32 ; } extern "C" { pub static mut stringtable : glui32 ; } extern "C" { pub static mut valstackbase : glui32 ; } extern "C" { pub static mut localsbase : glui32 ; } extern "C" { pub static mut endmem : glui32 ; } extern "C" { pub static mut protectstart : glui32 ; } extern "C" { pub static mut protectend : glui32 ; } extern "C" { pub static mut prevpc : glui32 ; } extern "C" { pub static mut stream_char_handler : :: std :: option :: Option < unsafe extern "C" fn ( ch : :: std :: os :: raw :: c_uchar ) > ; } extern "C" { pub static mut stream_unichar_handler : :: std :: option :: Option < unsafe extern "C" fn ( ch : glui32 ) > ; } extern "C" { pub fn set_library_start_hook ( arg1 : :: std :: option :: Option < unsafe extern "C" fn ( ) > ) ; } extern "C" { pub fn set_library_autorestore_hook ( arg1 : :: std :: option :: Option < unsafe extern "C" fn ( ) > ) ; } extern "C" { pub fn fatal_error_handler ( str : * mut :: std :: os :: raw :: c_char , arg : * mut :: std :: os :: raw :: c_char , useval : :: std :: os :: raw :: c_int , val : glsi32 ) ; } extern "C" { pub fn nonfatal_warning_handler ( str : * mut :: std :: os :: raw :: c_char , arg : * mut :: std :: os :: raw :: c_char , useval : :: std :: os :: raw :: c_int , val : glsi32 ) ; } extern "C" { pub fn is_gamefile_valid ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn locate_gamefile ( isblorb : :: std :: os :: raw :: c_int ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn setup_vm ( ) ; } extern "C" { pub fn finalize_vm ( ) ; } extern "C" { pub fn vm_restart ( ) ; } extern "C" { pub fn change_memsize ( newlen : glui32 , internal : :: std :: os :: raw :: c_int ) -> glui32 ; } extern "C" { pub fn pop_arguments ( count : glui32 , addr : glui32 ) -> * mut glui32 ; } extern "C" { pub fn verify_address ( addr : glui32 , count : glui32 ) ; } extern "C" { pub fn verify_address_write ( addr : glui32 , count : glui32 ) ; } extern "C" { pub fn verify_array_addresses ( addr : glui32 , count : glui32 , size : glui32 ) ; } extern "C" { pub fn execute_loop ( ) ; } extern "C" { pub static mut fast_operandlist : [ * mut operandlist_t ; 128usize ] ; } extern "C" { pub fn init_operands ( ) ; } extern "C" { pub fn lookup_operandlist ( opcode : glui32 ) -> * mut operandlist_t ; } extern "C" { pub fn parse_operands ( opargs : * mut oparg_t , oplist : * mut operandlist_t ) ; } extern "C" { pub fn store_operand ( desttype : glui32 , destaddr : glui32 , storeval : glui32 ) ; } extern "C" { pub fn store_operand_s ( desttype : glui32 , destaddr : glui32 , storeval : glui32 ) ; } extern "C" { pub fn store_operand_b ( desttype : glui32 , destaddr : glui32 , storeval : glui32 ) ; } extern "C" { pub fn enter_function ( addr : glui32 , argc : glui32 , argv : * mut glui32 ) ; } extern "C" { pub fn leave_function ( ) ; } extern "C" { pub fn push_callstub ( desttype : glui32 , destaddr : glui32 ) ; } extern "C" { pub fn pop_callstub ( returnvalue : glui32 ) ; } extern "C" { pub fn pop_callstub_string ( bitnum : * mut :: std :: os :: raw :: c_int ) -> glui32 ; } extern "C" { pub fn stream_num ( val : glsi32 , inmiddle : :: std :: os :: raw :: c_int , charnum : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn stream_string ( addr : glui32 , inmiddle : :: std :: os :: raw :: c_int , bitnum : :: std :: os :: raw :: c_int ) ; } extern "C" { pub fn stream_get_table ( ) -> glui32 ; } extern "C" { pub fn stream_set_table ( addr : glui32 ) ; } extern "C" { pub fn stream_get_iosys ( mode : * mut glui32 , rock : * mut glui32 ) ; } extern "C" { pub fn stream_set_iosys ( mode : glui32 , rock : glui32 ) ; } extern "C" { pub fn make_temp_string ( addr : glui32 ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { pub fn make_temp_ustring ( addr : glui32 ) -> * mut glui32 ; } extern "C" { pub fn free_temp_string ( str : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn free_temp_ustring ( str : * mut glui32 ) ; } extern "C" { pub fn heap_clear ( ) ; } extern "C" { pub fn heap_is_active ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn heap_get_start ( ) -> glui32 ; } extern "C" { pub fn heap_alloc ( len : glui32 ) -> glui32 ; } extern "C" { pub fn heap_free ( addr : glui32 ) ; } extern "C" { pub fn heap_get_summary ( valcount : * mut glui32 , summary : * mut * mut glui32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn heap_apply_summary ( valcount : glui32 , summary : * mut glui32 ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn heap_sanity_check ( ) ; } extern "C" { pub static mut max_undo_level : :: std :: os :: raw :: c_int ; } extern "C" { pub fn init_serial ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn final_serial ( ) ; } extern "C" { pub fn perform_save ( str : strid_t ) -> glui32 ; } extern "C" { pub fn perform_restore ( str : strid_t , fromshell : :: std :: os :: raw :: c_int ) -> glui32 ; } extern "C" { pub fn perform_saveundo ( ) -> glui32 ; } extern "C" { pub fn perform_restoreundo ( ) -> glui32 ; } extern "C" { pub fn perform_verify ( ) -> glui32 ; } extern "C" { pub fn linear_search ( key : glui32 , keysize : glui32 , start : glui32 , structsize : glui32 , numstructs : glui32 , keyoffset : glui32 , options : glui32 ) -> glui32 ; } extern "C" { pub fn binary_search ( key : glui32 , keysize : glui32 , start : glui32 , structsize : glui32 , numstructs : glui32 , keyoffset : glui32 , options : glui32 ) -> glui32 ; } extern "C" { pub fn linked_search ( key : glui32 , keysize : glui32 , start : glui32 , keyoffset : glui32 , nextoffset : glui32 , options : glui32 ) -> glui32 ; } extern "C" { pub fn glulx_malloc ( len : glui32 ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn glulx_realloc ( ptr : * mut :: std :: os :: raw :: c_void , len : glui32 ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { pub fn glulx_free ( ptr : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { pub fn glulx_setrandom ( seed : glui32 ) ; } extern "C" { pub fn glulx_random ( ) -> glui32 ; } extern "C" { pub fn glulx_sort ( addr : * mut :: std :: os :: raw :: c_void , count : :: std :: os :: raw :: c_int , size : :: std :: os :: raw :: c_int , comparefunc : :: std :: option :: Option < unsafe extern "C" fn ( p1 : * mut :: std :: os :: raw :: c_void , p2 : * mut :: std :: os :: raw :: c_void ) -> :: std :: os :: raw :: c_int > ) ; } extern "C" { pub fn do_gestalt ( val : glui32 , val2 : glui32 ) -> glui32 ; } extern "C" { pub fn set_library_select_hook ( func : :: std :: option :: Option < unsafe extern "C" fn ( arg1 : glui32 ) > ) ; } extern "C" { pub fn init_dispatch ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn perform_glk ( funcnum : glui32 , numargs : glui32 , arglist : * mut glui32 ) -> glui32 ; } extern "C" { pub fn find_stream_by_id ( objid : glui32 ) -> strid_t ; } extern "C" { pub fn find_id_for_window ( win : winid_t ) -> glui32 ; } extern "C" { pub fn find_id_for_stream ( str : strid_t ) -> glui32 ; } extern "C" { pub fn find_id_for_fileref ( fref : frefid_t ) -> glui32 ; } extern "C" { pub fn find_id_for_schannel ( schan : schanid_t ) -> glui32 ; } extern "C" { pub fn setup_profile ( stream : strid_t , filename : * mut :: std :: os :: raw :: c_char ) ; } extern "C" { pub fn init_profile ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn profile_set_call_counts ( flag : :: std :: os :: raw :: c_int ) ; } pub type acceleration_func = :: std :: option :: Option < unsafe extern "C" fn ( argc : glui32 , argv : * mut glui32 ) -> glui32 > ; extern "C" { pub fn init_accel ( ) ; } extern "C" { pub fn accel_find_func ( index : glui32 ) -> acceleration_func ; } extern "C" { pub fn accel_get_func ( addr : glui32 ) -> acceleration_func ; } extern "C" { pub fn accel_set_func ( index : glui32 , addr : glui32 ) ; } extern "C" { pub fn accel_set_param ( index : glui32 , val : glui32 ) ; } extern "C" { pub fn accel_get_param_count ( ) -> glui32 ; } extern "C" { pub fn accel_get_param ( index : glui32 ) -> glui32 ; } extern "C" { pub fn accel_iterate_funcs ( func : :: std :: option :: Option < unsafe extern "C" fn ( index : glui32 , addr : glui32 ) > ) ; } pub type gfloat32 = f32 ; extern "C" { pub fn init_float ( ) -> :: std :: os :: raw :: c_int ; } extern "C" { pub fn encode_float ( val : gfloat32 ) -> glui32 ; } extern "C" { pub fn decode_float ( val : glui32 ) -> gfloat32 ; } extern "C" { pub fn glulx_powf ( val1 : gfloat32 , val2 : gfloat32 ) -> gfloat32 ; }