{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Thread.FunPtr (
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_CreateThreadRuntime,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_CreateThreadWithPropertiesRuntime,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_GetThreadName,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_GetCurrentThreadID,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_GetThreadID,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_SetCurrentThreadPriority,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_WaitThread,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_GetThreadState,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_DetachThread,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_GetTLS,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_SetTLS,
SDL3.Sys.Bindgen.Thread.FunPtr.sDL_CleanupTLS,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Properties qualified
import SDL3.Sys.Bindgen.Stdinc qualified
import SDL3.Sys.Bindgen.Thread
$( HsBindgen.Runtime.Support.CAPI.addCSource
( HsBindgen.Runtime.Support.CAPI.unlines
[ "#define SDL_MAIN_HANDLED"
, "#define SDL_SLOW_MEMCPY"
, "#define SDL_SLOW_MEMMOVE"
, "#define SDL_SLOW_MEMSET"
, "#include <SDL3/SDL_thread.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_CreateThreadRuntime */"
, "__attribute__ ((const))"
, "SDL_Thread *(*hs_bindgen_079d67764828e8ca (void)) ("
, " SDL_ThreadFunction arg1,"
, " char const *arg2,"
, " void *arg3,"
, " SDL_FunctionPointer arg4,"
, " SDL_FunctionPointer arg5"
, ")"
, "{"
, " return &SDL_CreateThreadRuntime;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_CreateThreadWithPropertiesRuntime */"
, "__attribute__ ((const))"
, "SDL_Thread *(*hs_bindgen_fbbbbe860e54a81b (void)) ("
, " SDL_PropertiesID arg1,"
, " SDL_FunctionPointer arg2,"
, " SDL_FunctionPointer arg3"
, ")"
, "{"
, " return &SDL_CreateThreadWithPropertiesRuntime;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_GetThreadName */"
, "__attribute__ ((const))"
, "char const *(*hs_bindgen_e563c48c050c310f (void)) ("
, " SDL_Thread *arg1"
, ")"
, "{"
, " return &SDL_GetThreadName;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_GetCurrentThreadID */"
, "__attribute__ ((const))"
, "SDL_ThreadID (*hs_bindgen_effa8645fe390420 (void)) (void)"
, "{"
, " return &SDL_GetCurrentThreadID;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_GetThreadID */"
, "__attribute__ ((const))"
, "SDL_ThreadID (*hs_bindgen_c6b2baacca9ccf65 (void)) ("
, " SDL_Thread *arg1"
, ")"
, "{"
, " return &SDL_GetThreadID;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_SetCurrentThreadPriority */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_a168059a22478eba (void)) ("
, " SDL_ThreadPriority arg1"
, ")"
, "{"
, " return &SDL_SetCurrentThreadPriority;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_WaitThread */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_cfb548a191eb099e (void)) ("
, " SDL_Thread *arg1,"
, " signed int *arg2"
, ")"
, "{"
, " return &SDL_WaitThread;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_GetThreadState */"
, "__attribute__ ((const))"
, "SDL_ThreadState (*hs_bindgen_f7f587323d3bdf2a (void)) ("
, " SDL_Thread *arg1"
, ")"
, "{"
, " return &SDL_GetThreadState;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_DetachThread */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_aaa3526a91b1159b (void)) ("
, " SDL_Thread *arg1"
, ")"
, "{"
, " return &SDL_DetachThread;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_GetTLS */"
, "__attribute__ ((const))"
, "void *(*hs_bindgen_306c7e1462be621b (void)) ("
, " SDL_TLSID *arg1"
, ")"
, "{"
, " return &SDL_GetTLS;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_SetTLS */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_aeaff0a42fc0a797 (void)) ("
, " SDL_TLSID *arg1,"
, " void const *arg2,"
, " SDL_TLSDestructorCallback arg3"
, ")"
, "{"
, " return &SDL_SetTLS;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Thread_get_SDL_CleanupTLS */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_624951e26d725434 (void)) (void)"
, "{"
, " return &SDL_CleanupTLS;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_079d67764828e8ca"
hs_bindgen_079d67764828e8ca_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_079d67764828e8ca
:: IO
( BG.FunPtr
( SDL_ThreadFunction
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> IO (BG.Ptr SDL_Thread)
)
)
hs_bindgen_079d67764828e8ca :: IO
(FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
hs_bindgen_079d67764828e8ca =
(FunPtr Void
-> FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> IO (FunPtr Void)
-> IO
(FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
FFIType
(FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_079d67764828e8ca_base
{-# NOINLINE sDL_CreateThreadRuntime #-}
sDL_CreateThreadRuntime
:: BG.FunPtr
( SDL_ThreadFunction
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> IO (BG.Ptr SDL_Thread)
)
sDL_CreateThreadRuntime :: FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
sDL_CreateThreadRuntime =
IO
(FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(SDL_ThreadFunction
-> PtrConst CChar
-> Ptr Void
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
hs_bindgen_079d67764828e8ca
foreign import ccall unsafe "hs_bindgen_fbbbbe860e54a81b"
hs_bindgen_fbbbbe860e54a81b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_fbbbbe860e54a81b
:: IO
( BG.FunPtr
( SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> IO (BG.Ptr SDL_Thread)
)
)
hs_bindgen_fbbbbe860e54a81b :: IO
(FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
hs_bindgen_fbbbbe860e54a81b =
(FunPtr Void
-> FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> IO (FunPtr Void)
-> IO
(FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
FFIType
(FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_fbbbbe860e54a81b_base
{-# NOINLINE sDL_CreateThreadWithPropertiesRuntime #-}
sDL_CreateThreadWithPropertiesRuntime
:: BG.FunPtr
( SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> SDL3.Sys.Bindgen.Stdinc.SDL_FunctionPointer
-> IO (BG.Ptr SDL_Thread)
)
sDL_CreateThreadWithPropertiesRuntime :: FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
sDL_CreateThreadWithPropertiesRuntime =
IO
(FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
-> FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread))
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(SDL_PropertiesID
-> SDL_FunctionPointer
-> SDL_FunctionPointer
-> IO (Ptr SDL_Thread)))
hs_bindgen_fbbbbe860e54a81b
foreign import ccall unsafe "hs_bindgen_e563c48c050c310f"
hs_bindgen_e563c48c050c310f_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_e563c48c050c310f :: IO (BG.FunPtr (BG.Ptr SDL_Thread -> IO (PtrConst.PtrConst BG.CChar)))
hs_bindgen_e563c48c050c310f :: IO (FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
hs_bindgen_e563c48c050c310f =
(FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar))
FFIType (FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
-> FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_e563c48c050c310f_base
{-# NOINLINE sDL_GetThreadName #-}
sDL_GetThreadName :: BG.FunPtr (BG.Ptr SDL_Thread -> IO (PtrConst.PtrConst BG.CChar))
sDL_GetThreadName :: FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar))
sDL_GetThreadName =
IO (FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
-> FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Thread -> IO (PtrConst CChar)))
hs_bindgen_e563c48c050c310f
foreign import ccall unsafe "hs_bindgen_effa8645fe390420"
hs_bindgen_effa8645fe390420_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_effa8645fe390420 :: IO (BG.FunPtr (IO SDL_ThreadID))
hs_bindgen_effa8645fe390420 :: IO (FunPtr (IO SDL_ThreadID))
hs_bindgen_effa8645fe390420 =
(FunPtr Void -> FunPtr (IO SDL_ThreadID))
-> IO (FunPtr Void) -> IO (FunPtr (IO SDL_ThreadID))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (IO SDL_ThreadID)
FFIType (FunPtr (IO SDL_ThreadID)) -> FunPtr (IO SDL_ThreadID)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_effa8645fe390420_base
{-# NOINLINE sDL_GetCurrentThreadID #-}
sDL_GetCurrentThreadID :: BG.FunPtr (IO SDL_ThreadID)
sDL_GetCurrentThreadID :: FunPtr (IO SDL_ThreadID)
sDL_GetCurrentThreadID =
IO (FunPtr (IO SDL_ThreadID)) -> FunPtr (IO SDL_ThreadID)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO SDL_ThreadID))
hs_bindgen_effa8645fe390420
foreign import ccall unsafe "hs_bindgen_c6b2baacca9ccf65"
hs_bindgen_c6b2baacca9ccf65_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_c6b2baacca9ccf65 :: IO (BG.FunPtr (BG.Ptr SDL_Thread -> IO SDL_ThreadID))
hs_bindgen_c6b2baacca9ccf65 :: IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
hs_bindgen_c6b2baacca9ccf65 =
(FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID)
FFIType (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
-> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_c6b2baacca9ccf65_base
{-# NOINLINE sDL_GetThreadID #-}
sDL_GetThreadID :: BG.FunPtr (BG.Ptr SDL_Thread -> IO SDL_ThreadID)
sDL_GetThreadID :: FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID)
sDL_GetThreadID =
IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
-> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadID))
hs_bindgen_c6b2baacca9ccf65
foreign import ccall unsafe "hs_bindgen_a168059a22478eba"
hs_bindgen_a168059a22478eba_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_a168059a22478eba :: IO (BG.FunPtr (SDL_ThreadPriority -> IO BG.CBool))
hs_bindgen_a168059a22478eba :: IO (FunPtr (SDL_ThreadPriority -> IO CBool))
hs_bindgen_a168059a22478eba =
(FunPtr Void -> FunPtr (SDL_ThreadPriority -> IO CBool))
-> IO (FunPtr Void) -> IO (FunPtr (SDL_ThreadPriority -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (SDL_ThreadPriority -> IO CBool)
FFIType (FunPtr (SDL_ThreadPriority -> IO CBool))
-> FunPtr (SDL_ThreadPriority -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_a168059a22478eba_base
{-# NOINLINE sDL_SetCurrentThreadPriority #-}
sDL_SetCurrentThreadPriority :: BG.FunPtr (SDL_ThreadPriority -> IO BG.CBool)
sDL_SetCurrentThreadPriority :: FunPtr (SDL_ThreadPriority -> IO CBool)
sDL_SetCurrentThreadPriority =
IO (FunPtr (SDL_ThreadPriority -> IO CBool))
-> FunPtr (SDL_ThreadPriority -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (SDL_ThreadPriority -> IO CBool))
hs_bindgen_a168059a22478eba
foreign import ccall unsafe "hs_bindgen_cfb548a191eb099e"
hs_bindgen_cfb548a191eb099e_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_cfb548a191eb099e :: IO (BG.FunPtr (BG.Ptr SDL_Thread -> BG.Ptr BG.CInt -> IO ()))
hs_bindgen_cfb548a191eb099e :: IO (FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
hs_bindgen_cfb548a191eb099e =
(FunPtr Void -> FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ())
FFIType (FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
-> FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_cfb548a191eb099e_base
{-# NOINLINE sDL_WaitThread #-}
sDL_WaitThread :: BG.FunPtr (BG.Ptr SDL_Thread -> BG.Ptr BG.CInt -> IO ())
sDL_WaitThread :: FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ())
sDL_WaitThread =
IO (FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
-> FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Thread -> Ptr CInt -> IO ()))
hs_bindgen_cfb548a191eb099e
foreign import ccall unsafe "hs_bindgen_f7f587323d3bdf2a"
hs_bindgen_f7f587323d3bdf2a_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_f7f587323d3bdf2a :: IO (BG.FunPtr (BG.Ptr SDL_Thread -> IO SDL_ThreadState))
hs_bindgen_f7f587323d3bdf2a :: IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
hs_bindgen_f7f587323d3bdf2a =
(FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState)
FFIType (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
-> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_f7f587323d3bdf2a_base
{-# NOINLINE sDL_GetThreadState #-}
sDL_GetThreadState :: BG.FunPtr (BG.Ptr SDL_Thread -> IO SDL_ThreadState)
sDL_GetThreadState :: FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState)
sDL_GetThreadState =
IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
-> FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Thread -> IO SDL_ThreadState))
hs_bindgen_f7f587323d3bdf2a
foreign import ccall unsafe "hs_bindgen_aaa3526a91b1159b"
hs_bindgen_aaa3526a91b1159b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_aaa3526a91b1159b :: IO (BG.FunPtr (BG.Ptr SDL_Thread -> IO ()))
hs_bindgen_aaa3526a91b1159b :: IO (FunPtr (Ptr SDL_Thread -> IO ()))
hs_bindgen_aaa3526a91b1159b =
(FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_Thread -> IO ()))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_Thread -> IO ())
FFIType (FunPtr (Ptr SDL_Thread -> IO ()))
-> FunPtr (Ptr SDL_Thread -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_aaa3526a91b1159b_base
{-# NOINLINE sDL_DetachThread #-}
sDL_DetachThread :: BG.FunPtr (BG.Ptr SDL_Thread -> IO ())
sDL_DetachThread :: FunPtr (Ptr SDL_Thread -> IO ())
sDL_DetachThread =
IO (FunPtr (Ptr SDL_Thread -> IO ()))
-> FunPtr (Ptr SDL_Thread -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Thread -> IO ()))
hs_bindgen_aaa3526a91b1159b
foreign import ccall unsafe "hs_bindgen_306c7e1462be621b"
hs_bindgen_306c7e1462be621b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_306c7e1462be621b :: IO (BG.FunPtr (BG.Ptr SDL_TLSID -> IO (BG.Ptr BG.Void)))
hs_bindgen_306c7e1462be621b :: IO (FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
hs_bindgen_306c7e1462be621b =
(FunPtr Void -> FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (Ptr SDL_TLSID -> IO (Ptr Void))
FFIType (FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
-> FunPtr (Ptr SDL_TLSID -> IO (Ptr Void))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_306c7e1462be621b_base
{-# NOINLINE sDL_GetTLS #-}
sDL_GetTLS :: BG.FunPtr (BG.Ptr SDL_TLSID -> IO (BG.Ptr BG.Void))
sDL_GetTLS :: FunPtr (Ptr SDL_TLSID -> IO (Ptr Void))
sDL_GetTLS =
IO (FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
-> FunPtr (Ptr SDL_TLSID -> IO (Ptr Void))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_TLSID -> IO (Ptr Void)))
hs_bindgen_306c7e1462be621b
foreign import ccall unsafe "hs_bindgen_aeaff0a42fc0a797"
hs_bindgen_aeaff0a42fc0a797_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_aeaff0a42fc0a797
:: IO
( BG.FunPtr
(BG.Ptr SDL_TLSID -> PtrConst.PtrConst BG.Void -> SDL_TLSDestructorCallback -> IO BG.CBool)
)
hs_bindgen_aeaff0a42fc0a797 :: IO
(FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
hs_bindgen_aeaff0a42fc0a797 =
(FunPtr Void
-> FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool)
FFIType
(FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
-> FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_aeaff0a42fc0a797_base
{-# NOINLINE sDL_SetTLS #-}
sDL_SetTLS
:: BG.FunPtr
(BG.Ptr SDL_TLSID -> PtrConst.PtrConst BG.Void -> SDL_TLSDestructorCallback -> IO BG.CBool)
sDL_SetTLS :: FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool)
sDL_SetTLS =
IO
(FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
-> FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Ptr SDL_TLSID
-> PtrConst Void -> SDL_TLSDestructorCallback -> IO CBool))
hs_bindgen_aeaff0a42fc0a797
foreign import ccall unsafe "hs_bindgen_624951e26d725434"
hs_bindgen_624951e26d725434_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_624951e26d725434 :: IO (BG.FunPtr (IO ()))
hs_bindgen_624951e26d725434 :: IO (FunPtr (IO ()))
hs_bindgen_624951e26d725434 =
(FunPtr Void -> FunPtr (IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (IO ()))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (IO ())
FFIType (FunPtr (IO ())) -> FunPtr (IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_624951e26d725434_base
{-# NOINLINE sDL_CleanupTLS #-}
sDL_CleanupTLS :: BG.FunPtr (IO ())
sDL_CleanupTLS :: FunPtr (IO ())
sDL_CleanupTLS =
IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO ()))
hs_bindgen_624951e26d725434