{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Mutex.Safe (
SDL3.Sys.Bindgen.Mutex.Safe.sDL_CreateMutex,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_LockMutex,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_TryLockMutex,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_UnlockMutex,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_DestroyMutex,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_CreateRWLock,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_LockRWLockForReading,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_LockRWLockForWriting,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_TryLockRWLockForReading,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_TryLockRWLockForWriting,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_UnlockRWLock,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_DestroyRWLock,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_CreateSemaphore,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_DestroySemaphore,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_WaitSemaphore,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_TryWaitSemaphore,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_WaitSemaphoreTimeout,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_SignalSemaphore,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_GetSemaphoreValue,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_CreateCondition,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_DestroyCondition,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_SignalCondition,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_BroadcastCondition,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_WaitCondition,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_WaitConditionTimeout,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_ShouldInit,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_ShouldQuit,
SDL3.Sys.Bindgen.Mutex.Safe.sDL_SetInitialized,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Mutex
import SDL3.Sys.Bindgen.Stdinc qualified
$( 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_mutex.h>"
, "SDL_Mutex *hs_bindgen_8e29ae5aabbda111 (void)"
, "{"
, " return (SDL_CreateMutex)();"
, "}"
, "void hs_bindgen_ee717c25894777dd ("
, " SDL_Mutex *arg1"
, ")"
, "{"
, " (SDL_LockMutex)(arg1);"
, "}"
, "_Bool hs_bindgen_08c66a65371e794c ("
, " SDL_Mutex *arg1"
, ")"
, "{"
, " return (SDL_TryLockMutex)(arg1);"
, "}"
, "void hs_bindgen_0080eb2473efd4c0 ("
, " SDL_Mutex *arg1"
, ")"
, "{"
, " (SDL_UnlockMutex)(arg1);"
, "}"
, "void hs_bindgen_0848f2dbc2ab9299 ("
, " SDL_Mutex *arg1"
, ")"
, "{"
, " (SDL_DestroyMutex)(arg1);"
, "}"
, "SDL_RWLock *hs_bindgen_305069c9512cb61a (void)"
, "{"
, " return (SDL_CreateRWLock)();"
, "}"
, "void hs_bindgen_88156cb9c069d7ae ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " (SDL_LockRWLockForReading)(arg1);"
, "}"
, "void hs_bindgen_65b1a554927b8f99 ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " (SDL_LockRWLockForWriting)(arg1);"
, "}"
, "_Bool hs_bindgen_287956a25f4fabba ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " return (SDL_TryLockRWLockForReading)(arg1);"
, "}"
, "_Bool hs_bindgen_99a3ed9a28ed75f7 ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " return (SDL_TryLockRWLockForWriting)(arg1);"
, "}"
, "void hs_bindgen_c9284c30c938f332 ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " (SDL_UnlockRWLock)(arg1);"
, "}"
, "void hs_bindgen_743dbdcc7c185970 ("
, " SDL_RWLock *arg1"
, ")"
, "{"
, " (SDL_DestroyRWLock)(arg1);"
, "}"
, "SDL_Semaphore *hs_bindgen_d1200eed8ae4acf8 ("
, " Uint32 arg1"
, ")"
, "{"
, " return (SDL_CreateSemaphore)(arg1);"
, "}"
, "void hs_bindgen_d167c0d86f5bfae4 ("
, " SDL_Semaphore *arg1"
, ")"
, "{"
, " (SDL_DestroySemaphore)(arg1);"
, "}"
, "void hs_bindgen_0c536dc844c53556 ("
, " SDL_Semaphore *arg1"
, ")"
, "{"
, " (SDL_WaitSemaphore)(arg1);"
, "}"
, "_Bool hs_bindgen_8460788ee6bb642a ("
, " SDL_Semaphore *arg1"
, ")"
, "{"
, " return (SDL_TryWaitSemaphore)(arg1);"
, "}"
, "_Bool hs_bindgen_73158966e18c69df ("
, " SDL_Semaphore *arg1,"
, " Sint32 arg2"
, ")"
, "{"
, " return (SDL_WaitSemaphoreTimeout)(arg1, arg2);"
, "}"
, "void hs_bindgen_ad3ea5b998b9b02a ("
, " SDL_Semaphore *arg1"
, ")"
, "{"
, " (SDL_SignalSemaphore)(arg1);"
, "}"
, "Uint32 hs_bindgen_d7d8abceae459dc4 ("
, " SDL_Semaphore *arg1"
, ")"
, "{"
, " return (SDL_GetSemaphoreValue)(arg1);"
, "}"
, "SDL_Condition *hs_bindgen_f051c9d83065c51e (void)"
, "{"
, " return (SDL_CreateCondition)();"
, "}"
, "void hs_bindgen_284001adc7a8e944 ("
, " SDL_Condition *arg1"
, ")"
, "{"
, " (SDL_DestroyCondition)(arg1);"
, "}"
, "void hs_bindgen_8e6408554c791aa2 ("
, " SDL_Condition *arg1"
, ")"
, "{"
, " (SDL_SignalCondition)(arg1);"
, "}"
, "void hs_bindgen_1377f08bc73a7c85 ("
, " SDL_Condition *arg1"
, ")"
, "{"
, " (SDL_BroadcastCondition)(arg1);"
, "}"
, "void hs_bindgen_2c9c00769b6253d6 ("
, " SDL_Condition *arg1,"
, " SDL_Mutex *arg2"
, ")"
, "{"
, " (SDL_WaitCondition)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_158c5dc74b7f6a6d ("
, " SDL_Condition *arg1,"
, " SDL_Mutex *arg2,"
, " Sint32 arg3"
, ")"
, "{"
, " return (SDL_WaitConditionTimeout)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_c32bbe3119c28451 ("
, " SDL_InitState *arg1"
, ")"
, "{"
, " return (SDL_ShouldInit)(arg1);"
, "}"
, "_Bool hs_bindgen_edbe1140979f28da ("
, " SDL_InitState *arg1"
, ")"
, "{"
, " return (SDL_ShouldQuit)(arg1);"
, "}"
, "void hs_bindgen_5708550ac643317a ("
, " SDL_InitState *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " (SDL_SetInitialized)(arg1, arg2);"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_8e29ae5aabbda111"
hs_bindgen_8e29ae5aabbda111_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_8e29ae5aabbda111 :: IO (BG.Ptr SDL_Mutex)
hs_bindgen_8e29ae5aabbda111 :: IO (Ptr SDL_Mutex)
hs_bindgen_8e29ae5aabbda111 =
(Ptr Void -> Ptr SDL_Mutex) -> IO (Ptr Void) -> IO (Ptr SDL_Mutex)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Mutex
FFIType (Ptr SDL_Mutex) -> Ptr SDL_Mutex
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_8e29ae5aabbda111_base
sDL_CreateMutex :: IO (BG.Ptr SDL_Mutex)
sDL_CreateMutex :: IO (Ptr SDL_Mutex)
sDL_CreateMutex = IO (Ptr SDL_Mutex)
hs_bindgen_8e29ae5aabbda111
foreign import ccall safe "hs_bindgen_ee717c25894777dd"
hs_bindgen_ee717c25894777dd_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_ee717c25894777dd
:: BG.Ptr SDL_Mutex
-> IO ()
hs_bindgen_ee717c25894777dd :: Ptr SDL_Mutex -> IO ()
hs_bindgen_ee717c25894777dd =
\Ptr SDL_Mutex
x0 ->
Ptr Void -> IO ()
hs_bindgen_ee717c25894777dd_base (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x0)
sDL_LockMutex
:: BG.Ptr SDL_Mutex
-> IO ()
sDL_LockMutex :: Ptr SDL_Mutex -> IO ()
sDL_LockMutex = Ptr SDL_Mutex -> IO ()
hs_bindgen_ee717c25894777dd
foreign import ccall safe "hs_bindgen_08c66a65371e794c"
hs_bindgen_08c66a65371e794c_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_08c66a65371e794c
:: BG.Ptr SDL_Mutex
-> IO BG.CBool
hs_bindgen_08c66a65371e794c :: Ptr SDL_Mutex -> IO CBool
hs_bindgen_08c66a65371e794c =
\Ptr SDL_Mutex
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_08c66a65371e794c_base (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x0))
sDL_TryLockMutex
:: BG.Ptr SDL_Mutex
-> IO BG.CBool
sDL_TryLockMutex :: Ptr SDL_Mutex -> IO CBool
sDL_TryLockMutex = Ptr SDL_Mutex -> IO CBool
hs_bindgen_08c66a65371e794c
foreign import ccall safe "hs_bindgen_0080eb2473efd4c0"
hs_bindgen_0080eb2473efd4c0_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_0080eb2473efd4c0
:: BG.Ptr SDL_Mutex
-> IO ()
hs_bindgen_0080eb2473efd4c0 :: Ptr SDL_Mutex -> IO ()
hs_bindgen_0080eb2473efd4c0 =
\Ptr SDL_Mutex
x0 ->
Ptr Void -> IO ()
hs_bindgen_0080eb2473efd4c0_base (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x0)
sDL_UnlockMutex
:: BG.Ptr SDL_Mutex
-> IO ()
sDL_UnlockMutex :: Ptr SDL_Mutex -> IO ()
sDL_UnlockMutex = Ptr SDL_Mutex -> IO ()
hs_bindgen_0080eb2473efd4c0
foreign import ccall safe "hs_bindgen_0848f2dbc2ab9299"
hs_bindgen_0848f2dbc2ab9299_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_0848f2dbc2ab9299
:: BG.Ptr SDL_Mutex
-> IO ()
hs_bindgen_0848f2dbc2ab9299 :: Ptr SDL_Mutex -> IO ()
hs_bindgen_0848f2dbc2ab9299 =
\Ptr SDL_Mutex
x0 ->
Ptr Void -> IO ()
hs_bindgen_0848f2dbc2ab9299_base (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x0)
sDL_DestroyMutex
:: BG.Ptr SDL_Mutex
-> IO ()
sDL_DestroyMutex :: Ptr SDL_Mutex -> IO ()
sDL_DestroyMutex = Ptr SDL_Mutex -> IO ()
hs_bindgen_0848f2dbc2ab9299
foreign import ccall safe "hs_bindgen_305069c9512cb61a"
hs_bindgen_305069c9512cb61a_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_305069c9512cb61a :: IO (BG.Ptr SDL_RWLock)
hs_bindgen_305069c9512cb61a :: IO (Ptr SDL_RWLock)
hs_bindgen_305069c9512cb61a =
(Ptr Void -> Ptr SDL_RWLock)
-> IO (Ptr Void) -> IO (Ptr SDL_RWLock)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_RWLock
FFIType (Ptr SDL_RWLock) -> Ptr SDL_RWLock
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_305069c9512cb61a_base
sDL_CreateRWLock :: IO (BG.Ptr SDL_RWLock)
sDL_CreateRWLock :: IO (Ptr SDL_RWLock)
sDL_CreateRWLock = IO (Ptr SDL_RWLock)
hs_bindgen_305069c9512cb61a
foreign import ccall safe "hs_bindgen_88156cb9c069d7ae"
hs_bindgen_88156cb9c069d7ae_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_88156cb9c069d7ae
:: BG.Ptr SDL_RWLock
-> IO ()
hs_bindgen_88156cb9c069d7ae :: Ptr SDL_RWLock -> IO ()
hs_bindgen_88156cb9c069d7ae =
\Ptr SDL_RWLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_88156cb9c069d7ae_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0)
sDL_LockRWLockForReading
:: BG.Ptr SDL_RWLock
-> IO ()
sDL_LockRWLockForReading :: Ptr SDL_RWLock -> IO ()
sDL_LockRWLockForReading =
Ptr SDL_RWLock -> IO ()
hs_bindgen_88156cb9c069d7ae
foreign import ccall safe "hs_bindgen_65b1a554927b8f99"
hs_bindgen_65b1a554927b8f99_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_65b1a554927b8f99
:: BG.Ptr SDL_RWLock
-> IO ()
hs_bindgen_65b1a554927b8f99 :: Ptr SDL_RWLock -> IO ()
hs_bindgen_65b1a554927b8f99 =
\Ptr SDL_RWLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_65b1a554927b8f99_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0)
sDL_LockRWLockForWriting
:: BG.Ptr SDL_RWLock
-> IO ()
sDL_LockRWLockForWriting :: Ptr SDL_RWLock -> IO ()
sDL_LockRWLockForWriting =
Ptr SDL_RWLock -> IO ()
hs_bindgen_65b1a554927b8f99
foreign import ccall safe "hs_bindgen_287956a25f4fabba"
hs_bindgen_287956a25f4fabba_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_287956a25f4fabba
:: BG.Ptr SDL_RWLock
-> IO BG.CBool
hs_bindgen_287956a25f4fabba :: Ptr SDL_RWLock -> IO CBool
hs_bindgen_287956a25f4fabba =
\Ptr SDL_RWLock
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_287956a25f4fabba_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0))
sDL_TryLockRWLockForReading
:: BG.Ptr SDL_RWLock
-> IO BG.CBool
sDL_TryLockRWLockForReading :: Ptr SDL_RWLock -> IO CBool
sDL_TryLockRWLockForReading =
Ptr SDL_RWLock -> IO CBool
hs_bindgen_287956a25f4fabba
foreign import ccall safe "hs_bindgen_99a3ed9a28ed75f7"
hs_bindgen_99a3ed9a28ed75f7_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_99a3ed9a28ed75f7
:: BG.Ptr SDL_RWLock
-> IO BG.CBool
hs_bindgen_99a3ed9a28ed75f7 :: Ptr SDL_RWLock -> IO CBool
hs_bindgen_99a3ed9a28ed75f7 =
\Ptr SDL_RWLock
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_99a3ed9a28ed75f7_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0))
sDL_TryLockRWLockForWriting
:: BG.Ptr SDL_RWLock
-> IO BG.CBool
sDL_TryLockRWLockForWriting :: Ptr SDL_RWLock -> IO CBool
sDL_TryLockRWLockForWriting =
Ptr SDL_RWLock -> IO CBool
hs_bindgen_99a3ed9a28ed75f7
foreign import ccall safe "hs_bindgen_c9284c30c938f332"
hs_bindgen_c9284c30c938f332_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_c9284c30c938f332
:: BG.Ptr SDL_RWLock
-> IO ()
hs_bindgen_c9284c30c938f332 :: Ptr SDL_RWLock -> IO ()
hs_bindgen_c9284c30c938f332 =
\Ptr SDL_RWLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_c9284c30c938f332_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0)
sDL_UnlockRWLock
:: BG.Ptr SDL_RWLock
-> IO ()
sDL_UnlockRWLock :: Ptr SDL_RWLock -> IO ()
sDL_UnlockRWLock = Ptr SDL_RWLock -> IO ()
hs_bindgen_c9284c30c938f332
foreign import ccall safe "hs_bindgen_743dbdcc7c185970"
hs_bindgen_743dbdcc7c185970_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_743dbdcc7c185970
:: BG.Ptr SDL_RWLock
-> IO ()
hs_bindgen_743dbdcc7c185970 :: Ptr SDL_RWLock -> IO ()
hs_bindgen_743dbdcc7c185970 =
\Ptr SDL_RWLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_743dbdcc7c185970_base (Ptr SDL_RWLock -> FFIType (Ptr SDL_RWLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_RWLock
x0)
sDL_DestroyRWLock
:: BG.Ptr SDL_RWLock
-> IO ()
sDL_DestroyRWLock :: Ptr SDL_RWLock -> IO ()
sDL_DestroyRWLock = Ptr SDL_RWLock -> IO ()
hs_bindgen_743dbdcc7c185970
foreign import ccall safe "hs_bindgen_d1200eed8ae4acf8"
hs_bindgen_d1200eed8ae4acf8_base
:: HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_d1200eed8ae4acf8
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO (BG.Ptr SDL_Semaphore)
hs_bindgen_d1200eed8ae4acf8 :: Uint32 -> IO (Ptr SDL_Semaphore)
hs_bindgen_d1200eed8ae4acf8 =
\Uint32
x0 ->
(Ptr Void -> Ptr SDL_Semaphore)
-> IO (Ptr Void) -> IO (Ptr SDL_Semaphore)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Semaphore
FFIType (Ptr SDL_Semaphore) -> Ptr SDL_Semaphore
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> IO (Ptr Void)
hs_bindgen_d1200eed8ae4acf8_base (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0))
sDL_CreateSemaphore
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO (BG.Ptr SDL_Semaphore)
sDL_CreateSemaphore :: Uint32 -> IO (Ptr SDL_Semaphore)
sDL_CreateSemaphore = Uint32 -> IO (Ptr SDL_Semaphore)
hs_bindgen_d1200eed8ae4acf8
foreign import ccall safe "hs_bindgen_d167c0d86f5bfae4"
hs_bindgen_d167c0d86f5bfae4_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_d167c0d86f5bfae4
:: BG.Ptr SDL_Semaphore
-> IO ()
hs_bindgen_d167c0d86f5bfae4 :: Ptr SDL_Semaphore -> IO ()
hs_bindgen_d167c0d86f5bfae4 =
\Ptr SDL_Semaphore
x0 ->
Ptr Void -> IO ()
hs_bindgen_d167c0d86f5bfae4_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0)
sDL_DestroySemaphore
:: BG.Ptr SDL_Semaphore
-> IO ()
sDL_DestroySemaphore :: Ptr SDL_Semaphore -> IO ()
sDL_DestroySemaphore = Ptr SDL_Semaphore -> IO ()
hs_bindgen_d167c0d86f5bfae4
foreign import ccall safe "hs_bindgen_0c536dc844c53556"
hs_bindgen_0c536dc844c53556_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_0c536dc844c53556
:: BG.Ptr SDL_Semaphore
-> IO ()
hs_bindgen_0c536dc844c53556 :: Ptr SDL_Semaphore -> IO ()
hs_bindgen_0c536dc844c53556 =
\Ptr SDL_Semaphore
x0 ->
Ptr Void -> IO ()
hs_bindgen_0c536dc844c53556_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0)
sDL_WaitSemaphore
:: BG.Ptr SDL_Semaphore
-> IO ()
sDL_WaitSemaphore :: Ptr SDL_Semaphore -> IO ()
sDL_WaitSemaphore = Ptr SDL_Semaphore -> IO ()
hs_bindgen_0c536dc844c53556
foreign import ccall safe "hs_bindgen_8460788ee6bb642a"
hs_bindgen_8460788ee6bb642a_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_8460788ee6bb642a
:: BG.Ptr SDL_Semaphore
-> IO BG.CBool
hs_bindgen_8460788ee6bb642a :: Ptr SDL_Semaphore -> IO CBool
hs_bindgen_8460788ee6bb642a =
\Ptr SDL_Semaphore
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_8460788ee6bb642a_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0))
sDL_TryWaitSemaphore
:: BG.Ptr SDL_Semaphore
-> IO BG.CBool
sDL_TryWaitSemaphore :: Ptr SDL_Semaphore -> IO CBool
sDL_TryWaitSemaphore = Ptr SDL_Semaphore -> IO CBool
hs_bindgen_8460788ee6bb642a
foreign import ccall safe "hs_bindgen_73158966e18c69df"
hs_bindgen_73158966e18c69df_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CBool
hs_bindgen_73158966e18c69df
:: BG.Ptr SDL_Semaphore
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
hs_bindgen_73158966e18c69df :: Ptr SDL_Semaphore -> Sint32 -> IO CBool
hs_bindgen_73158966e18c69df =
\Ptr SDL_Semaphore
x0 ->
\Sint32
x1 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Int32 -> IO CBool
hs_bindgen_73158966e18c69df_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0) (Sint32 -> FFIType Sint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Sint32
x1))
sDL_WaitSemaphoreTimeout
:: BG.Ptr SDL_Semaphore
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
sDL_WaitSemaphoreTimeout :: Ptr SDL_Semaphore -> Sint32 -> IO CBool
sDL_WaitSemaphoreTimeout =
Ptr SDL_Semaphore -> Sint32 -> IO CBool
hs_bindgen_73158966e18c69df
foreign import ccall safe "hs_bindgen_ad3ea5b998b9b02a"
hs_bindgen_ad3ea5b998b9b02a_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_ad3ea5b998b9b02a
:: BG.Ptr SDL_Semaphore
-> IO ()
hs_bindgen_ad3ea5b998b9b02a :: Ptr SDL_Semaphore -> IO ()
hs_bindgen_ad3ea5b998b9b02a =
\Ptr SDL_Semaphore
x0 ->
Ptr Void -> IO ()
hs_bindgen_ad3ea5b998b9b02a_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0)
sDL_SignalSemaphore
:: BG.Ptr SDL_Semaphore
-> IO ()
sDL_SignalSemaphore :: Ptr SDL_Semaphore -> IO ()
sDL_SignalSemaphore = Ptr SDL_Semaphore -> IO ()
hs_bindgen_ad3ea5b998b9b02a
foreign import ccall safe "hs_bindgen_d7d8abceae459dc4"
hs_bindgen_d7d8abceae459dc4_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_d7d8abceae459dc4
:: BG.Ptr SDL_Semaphore
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_d7d8abceae459dc4 :: Ptr SDL_Semaphore -> IO Uint32
hs_bindgen_d7d8abceae459dc4 =
\Ptr SDL_Semaphore
x0 ->
(Word32 -> Uint32) -> IO Word32 -> IO Uint32
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> Uint32
FFIType Uint32 -> Uint32
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO Word32
hs_bindgen_d7d8abceae459dc4_base (Ptr SDL_Semaphore -> FFIType (Ptr SDL_Semaphore)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Semaphore
x0))
sDL_GetSemaphoreValue
:: BG.Ptr SDL_Semaphore
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_GetSemaphoreValue :: Ptr SDL_Semaphore -> IO Uint32
sDL_GetSemaphoreValue = Ptr SDL_Semaphore -> IO Uint32
hs_bindgen_d7d8abceae459dc4
foreign import ccall safe "hs_bindgen_f051c9d83065c51e"
hs_bindgen_f051c9d83065c51e_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_f051c9d83065c51e :: IO (BG.Ptr SDL_Condition)
hs_bindgen_f051c9d83065c51e :: IO (Ptr SDL_Condition)
hs_bindgen_f051c9d83065c51e =
(Ptr Void -> Ptr SDL_Condition)
-> IO (Ptr Void) -> IO (Ptr SDL_Condition)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Condition
FFIType (Ptr SDL_Condition) -> Ptr SDL_Condition
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_f051c9d83065c51e_base
sDL_CreateCondition :: IO (BG.Ptr SDL_Condition)
sDL_CreateCondition :: IO (Ptr SDL_Condition)
sDL_CreateCondition = IO (Ptr SDL_Condition)
hs_bindgen_f051c9d83065c51e
foreign import ccall safe "hs_bindgen_284001adc7a8e944"
hs_bindgen_284001adc7a8e944_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_284001adc7a8e944
:: BG.Ptr SDL_Condition
-> IO ()
hs_bindgen_284001adc7a8e944 :: Ptr SDL_Condition -> IO ()
hs_bindgen_284001adc7a8e944 =
\Ptr SDL_Condition
x0 ->
Ptr Void -> IO ()
hs_bindgen_284001adc7a8e944_base (Ptr SDL_Condition -> FFIType (Ptr SDL_Condition)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Condition
x0)
sDL_DestroyCondition
:: BG.Ptr SDL_Condition
-> IO ()
sDL_DestroyCondition :: Ptr SDL_Condition -> IO ()
sDL_DestroyCondition = Ptr SDL_Condition -> IO ()
hs_bindgen_284001adc7a8e944
foreign import ccall safe "hs_bindgen_8e6408554c791aa2"
hs_bindgen_8e6408554c791aa2_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_8e6408554c791aa2
:: BG.Ptr SDL_Condition
-> IO ()
hs_bindgen_8e6408554c791aa2 :: Ptr SDL_Condition -> IO ()
hs_bindgen_8e6408554c791aa2 =
\Ptr SDL_Condition
x0 ->
Ptr Void -> IO ()
hs_bindgen_8e6408554c791aa2_base (Ptr SDL_Condition -> FFIType (Ptr SDL_Condition)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Condition
x0)
sDL_SignalCondition
:: BG.Ptr SDL_Condition
-> IO ()
sDL_SignalCondition :: Ptr SDL_Condition -> IO ()
sDL_SignalCondition = Ptr SDL_Condition -> IO ()
hs_bindgen_8e6408554c791aa2
foreign import ccall safe "hs_bindgen_1377f08bc73a7c85"
hs_bindgen_1377f08bc73a7c85_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_1377f08bc73a7c85
:: BG.Ptr SDL_Condition
-> IO ()
hs_bindgen_1377f08bc73a7c85 :: Ptr SDL_Condition -> IO ()
hs_bindgen_1377f08bc73a7c85 =
\Ptr SDL_Condition
x0 ->
Ptr Void -> IO ()
hs_bindgen_1377f08bc73a7c85_base (Ptr SDL_Condition -> FFIType (Ptr SDL_Condition)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Condition
x0)
sDL_BroadcastCondition
:: BG.Ptr SDL_Condition
-> IO ()
sDL_BroadcastCondition :: Ptr SDL_Condition -> IO ()
sDL_BroadcastCondition = Ptr SDL_Condition -> IO ()
hs_bindgen_1377f08bc73a7c85
foreign import ccall safe "hs_bindgen_2c9c00769b6253d6"
hs_bindgen_2c9c00769b6253d6_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_2c9c00769b6253d6
:: BG.Ptr SDL_Condition
-> BG.Ptr SDL_Mutex
-> IO ()
hs_bindgen_2c9c00769b6253d6 :: Ptr SDL_Condition -> Ptr SDL_Mutex -> IO ()
hs_bindgen_2c9c00769b6253d6 =
\Ptr SDL_Condition
x0 ->
\Ptr SDL_Mutex
x1 ->
Ptr Void -> Ptr Void -> IO ()
hs_bindgen_2c9c00769b6253d6_base (Ptr SDL_Condition -> FFIType (Ptr SDL_Condition)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Condition
x0) (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x1)
sDL_WaitCondition
:: BG.Ptr SDL_Condition
-> BG.Ptr SDL_Mutex
-> IO ()
sDL_WaitCondition :: Ptr SDL_Condition -> Ptr SDL_Mutex -> IO ()
sDL_WaitCondition = Ptr SDL_Condition -> Ptr SDL_Mutex -> IO ()
hs_bindgen_2c9c00769b6253d6
foreign import ccall safe "hs_bindgen_158c5dc74b7f6a6d"
hs_bindgen_158c5dc74b7f6a6d_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CBool
hs_bindgen_158c5dc74b7f6a6d
:: BG.Ptr SDL_Condition
-> BG.Ptr SDL_Mutex
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
hs_bindgen_158c5dc74b7f6a6d :: Ptr SDL_Condition -> Ptr SDL_Mutex -> Sint32 -> IO CBool
hs_bindgen_158c5dc74b7f6a6d =
\Ptr SDL_Condition
x0 ->
\Ptr SDL_Mutex
x1 ->
\Sint32
x2 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
(Ptr Void -> Ptr Void -> Int32 -> IO CBool
hs_bindgen_158c5dc74b7f6a6d_base (Ptr SDL_Condition -> FFIType (Ptr SDL_Condition)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Condition
x0) (Ptr SDL_Mutex -> FFIType (Ptr SDL_Mutex)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Mutex
x1) (Sint32 -> FFIType Sint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Sint32
x2))
sDL_WaitConditionTimeout
:: BG.Ptr SDL_Condition
-> BG.Ptr SDL_Mutex
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
sDL_WaitConditionTimeout :: Ptr SDL_Condition -> Ptr SDL_Mutex -> Sint32 -> IO CBool
sDL_WaitConditionTimeout =
Ptr SDL_Condition -> Ptr SDL_Mutex -> Sint32 -> IO CBool
hs_bindgen_158c5dc74b7f6a6d
foreign import ccall safe "hs_bindgen_c32bbe3119c28451"
hs_bindgen_c32bbe3119c28451_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c32bbe3119c28451
:: BG.Ptr SDL_InitState
-> IO BG.CBool
hs_bindgen_c32bbe3119c28451 :: Ptr SDL_InitState -> IO CBool
hs_bindgen_c32bbe3119c28451 =
\Ptr SDL_InitState
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_c32bbe3119c28451_base (Ptr SDL_InitState -> FFIType (Ptr SDL_InitState)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_InitState
x0))
sDL_ShouldInit
:: BG.Ptr SDL_InitState
-> IO BG.CBool
sDL_ShouldInit :: Ptr SDL_InitState -> IO CBool
sDL_ShouldInit = Ptr SDL_InitState -> IO CBool
hs_bindgen_c32bbe3119c28451
foreign import ccall safe "hs_bindgen_edbe1140979f28da"
hs_bindgen_edbe1140979f28da_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_edbe1140979f28da
:: BG.Ptr SDL_InitState
-> IO BG.CBool
hs_bindgen_edbe1140979f28da :: Ptr SDL_InitState -> IO CBool
hs_bindgen_edbe1140979f28da =
\Ptr SDL_InitState
x0 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CBool
hs_bindgen_edbe1140979f28da_base (Ptr SDL_InitState -> FFIType (Ptr SDL_InitState)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_InitState
x0))
sDL_ShouldQuit
:: BG.Ptr SDL_InitState
-> IO BG.CBool
sDL_ShouldQuit :: Ptr SDL_InitState -> IO CBool
sDL_ShouldQuit = Ptr SDL_InitState -> IO CBool
hs_bindgen_edbe1140979f28da
foreign import ccall safe "hs_bindgen_5708550ac643317a"
hs_bindgen_5708550ac643317a_base
:: BG.Ptr BG.Void
-> BG.CBool
-> IO ()
hs_bindgen_5708550ac643317a
:: BG.Ptr SDL_InitState
-> BG.CBool
-> IO ()
hs_bindgen_5708550ac643317a :: Ptr SDL_InitState -> CBool -> IO ()
hs_bindgen_5708550ac643317a =
\Ptr SDL_InitState
x0 ->
\CBool
x1 ->
Ptr Void -> CBool -> IO ()
hs_bindgen_5708550ac643317a_base (Ptr SDL_InitState -> FFIType (Ptr SDL_InitState)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_InitState
x0) (CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x1)
sDL_SetInitialized
:: BG.Ptr SDL_InitState
-> BG.CBool
-> IO ()
sDL_SetInitialized :: Ptr SDL_InitState -> CBool -> IO ()
sDL_SetInitialized = Ptr SDL_InitState -> CBool -> IO ()
hs_bindgen_5708550ac643317a