{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Atomic.FunPtr (
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_TryLockSpinlock,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_LockSpinlock,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_UnlockSpinlock,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_MemoryBarrierReleaseFunction,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_MemoryBarrierAcquireFunction,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_CompareAndSwapAtomicInt,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_SetAtomicInt,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_GetAtomicInt,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_AddAtomicInt,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_CompareAndSwapAtomicU32,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_SetAtomicU32,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_GetAtomicU32,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_AddAtomicU32,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_CompareAndSwapAtomicPointer,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_SetAtomicPointer,
SDL3.Sys.Bindgen.Atomic.FunPtr.sDL_GetAtomicPointer,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Atomic
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_atomic.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_TryLockSpinlock */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_3653769bf64cd142 (void)) ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " return &SDL_TryLockSpinlock;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_LockSpinlock */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_192f3ef53748431b (void)) ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " return &SDL_LockSpinlock;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_UnlockSpinlock */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_da14195ad2b603e0 (void)) ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " return &SDL_UnlockSpinlock;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_MemoryBarrierReleaseFunction */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_4979d73c1ba41e39 (void)) (void)"
, "{"
, " return &SDL_MemoryBarrierReleaseFunction;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_MemoryBarrierAcquireFunction */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_e6cbd7564a024d99 (void)) (void)"
, "{"
, " return &SDL_MemoryBarrierAcquireFunction;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_CompareAndSwapAtomicInt */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_c535bda19feaf153 (void)) ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2,"
, " signed int arg3"
, ")"
, "{"
, " return &SDL_CompareAndSwapAtomicInt;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_SetAtomicInt */"
, "__attribute__ ((const))"
, "signed int (*hs_bindgen_281a397e642c4489 (void)) ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return &SDL_SetAtomicInt;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_GetAtomicInt */"
, "__attribute__ ((const))"
, "signed int (*hs_bindgen_db9688135888e49b (void)) ("
, " SDL_AtomicInt *arg1"
, ")"
, "{"
, " return &SDL_GetAtomicInt;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_AddAtomicInt */"
, "__attribute__ ((const))"
, "signed int (*hs_bindgen_3e37f598766ca408 (void)) ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return &SDL_AddAtomicInt;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_CompareAndSwapAtomicU32 */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_b4be57e876b926c0 (void)) ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2,"
, " Uint32 arg3"
, ")"
, "{"
, " return &SDL_CompareAndSwapAtomicU32;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_SetAtomicU32 */"
, "__attribute__ ((const))"
, "Uint32 (*hs_bindgen_34e65bfeeaed8bb5 (void)) ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " return &SDL_SetAtomicU32;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_GetAtomicU32 */"
, "__attribute__ ((const))"
, "Uint32 (*hs_bindgen_89429d58246e8835 (void)) ("
, " SDL_AtomicU32 *arg1"
, ")"
, "{"
, " return &SDL_GetAtomicU32;"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_AddAtomicU32 */"
, "__attribute__ ((const))"
, "Uint32 (*hs_bindgen_74ebd3ff8c83f38e (void)) ("
, " SDL_AtomicU32 *arg1,"
, " signed int arg2"
, ")"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return &SDL_AddAtomicU32;"
, "#else"
, " SDL_SetError(\"SDL_AddAtomicU32 requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_CompareAndSwapAtomicPointer */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_6871c50a63bfd9f4 (void)) ("
, " void **arg1,"
, " void *arg2,"
, " void *arg3"
, ")"
, "{"
, " return &SDL_CompareAndSwapAtomicPointer;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_SetAtomicPointer */"
, "__attribute__ ((const))"
, "void *(*hs_bindgen_f4bd3696da14dba9 (void)) ("
, " void **arg1,"
, " void *arg2"
, ")"
, "{"
, " return &SDL_SetAtomicPointer;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Atomic_get_SDL_GetAtomicPointer */"
, "__attribute__ ((const))"
, "void *(*hs_bindgen_dc36e65ef974254e (void)) ("
, " void **arg1"
, ")"
, "{"
, " return &SDL_GetAtomicPointer;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_3653769bf64cd142"
hs_bindgen_3653769bf64cd142_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_3653769bf64cd142 :: IO (BG.FunPtr (BG.Ptr SDL_SpinLock -> IO BG.CBool))
hs_bindgen_3653769bf64cd142 :: IO (FunPtr (Ptr SDL_SpinLock -> IO CBool))
hs_bindgen_3653769bf64cd142 =
(FunPtr Void -> FunPtr (Ptr SDL_SpinLock -> IO CBool))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_SpinLock -> 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_SpinLock -> IO CBool)
FFIType (FunPtr (Ptr SDL_SpinLock -> IO CBool))
-> FunPtr (Ptr SDL_SpinLock -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_3653769bf64cd142_base
{-# NOINLINE sDL_TryLockSpinlock #-}
sDL_TryLockSpinlock :: BG.FunPtr (BG.Ptr SDL_SpinLock -> IO BG.CBool)
sDL_TryLockSpinlock :: FunPtr (Ptr SDL_SpinLock -> IO CBool)
sDL_TryLockSpinlock =
IO (FunPtr (Ptr SDL_SpinLock -> IO CBool))
-> FunPtr (Ptr SDL_SpinLock -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_SpinLock -> IO CBool))
hs_bindgen_3653769bf64cd142
foreign import ccall unsafe "hs_bindgen_192f3ef53748431b"
hs_bindgen_192f3ef53748431b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_192f3ef53748431b :: IO (BG.FunPtr (BG.Ptr SDL_SpinLock -> IO ()))
hs_bindgen_192f3ef53748431b :: IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
hs_bindgen_192f3ef53748431b =
(FunPtr Void -> FunPtr (Ptr SDL_SpinLock -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_SpinLock -> 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_SpinLock -> IO ())
FFIType (FunPtr (Ptr SDL_SpinLock -> IO ()))
-> FunPtr (Ptr SDL_SpinLock -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_192f3ef53748431b_base
{-# NOINLINE sDL_LockSpinlock #-}
sDL_LockSpinlock :: BG.FunPtr (BG.Ptr SDL_SpinLock -> IO ())
sDL_LockSpinlock :: FunPtr (Ptr SDL_SpinLock -> IO ())
sDL_LockSpinlock =
IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
-> FunPtr (Ptr SDL_SpinLock -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
hs_bindgen_192f3ef53748431b
foreign import ccall unsafe "hs_bindgen_da14195ad2b603e0"
hs_bindgen_da14195ad2b603e0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_da14195ad2b603e0 :: IO (BG.FunPtr (BG.Ptr SDL_SpinLock -> IO ()))
hs_bindgen_da14195ad2b603e0 :: IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
hs_bindgen_da14195ad2b603e0 =
(FunPtr Void -> FunPtr (Ptr SDL_SpinLock -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_SpinLock -> 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_SpinLock -> IO ())
FFIType (FunPtr (Ptr SDL_SpinLock -> IO ()))
-> FunPtr (Ptr SDL_SpinLock -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_da14195ad2b603e0_base
{-# NOINLINE sDL_UnlockSpinlock #-}
sDL_UnlockSpinlock :: BG.FunPtr (BG.Ptr SDL_SpinLock -> IO ())
sDL_UnlockSpinlock :: FunPtr (Ptr SDL_SpinLock -> IO ())
sDL_UnlockSpinlock =
IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
-> FunPtr (Ptr SDL_SpinLock -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_SpinLock -> IO ()))
hs_bindgen_da14195ad2b603e0
foreign import ccall unsafe "hs_bindgen_4979d73c1ba41e39"
hs_bindgen_4979d73c1ba41e39_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_4979d73c1ba41e39 :: IO (BG.FunPtr (IO ()))
hs_bindgen_4979d73c1ba41e39 :: IO (FunPtr (IO ()))
hs_bindgen_4979d73c1ba41e39 =
(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_4979d73c1ba41e39_base
{-# NOINLINE sDL_MemoryBarrierReleaseFunction #-}
sDL_MemoryBarrierReleaseFunction :: BG.FunPtr (IO ())
sDL_MemoryBarrierReleaseFunction :: FunPtr (IO ())
sDL_MemoryBarrierReleaseFunction =
IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO ()))
hs_bindgen_4979d73c1ba41e39
foreign import ccall unsafe "hs_bindgen_e6cbd7564a024d99"
hs_bindgen_e6cbd7564a024d99_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_e6cbd7564a024d99 :: IO (BG.FunPtr (IO ()))
hs_bindgen_e6cbd7564a024d99 :: IO (FunPtr (IO ()))
hs_bindgen_e6cbd7564a024d99 =
(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_e6cbd7564a024d99_base
{-# NOINLINE sDL_MemoryBarrierAcquireFunction #-}
sDL_MemoryBarrierAcquireFunction :: BG.FunPtr (IO ())
sDL_MemoryBarrierAcquireFunction :: FunPtr (IO ())
sDL_MemoryBarrierAcquireFunction =
IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO ()))
hs_bindgen_e6cbd7564a024d99
foreign import ccall unsafe "hs_bindgen_c535bda19feaf153"
hs_bindgen_c535bda19feaf153_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_c535bda19feaf153
:: IO (BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> BG.CInt -> IO BG.CBool))
hs_bindgen_c535bda19feaf153 :: IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool))
hs_bindgen_c535bda19feaf153 =
(FunPtr Void
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> 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_AtomicInt -> CInt -> CInt -> IO CBool)
FFIType (FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_c535bda19feaf153_base
{-# NOINLINE sDL_CompareAndSwapAtomicInt #-}
sDL_CompareAndSwapAtomicInt :: BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> BG.CInt -> IO BG.CBool)
sDL_CompareAndSwapAtomicInt :: FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool)
sDL_CompareAndSwapAtomicInt =
IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool))
hs_bindgen_c535bda19feaf153
foreign import ccall unsafe "hs_bindgen_281a397e642c4489"
hs_bindgen_281a397e642c4489_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_281a397e642c4489 :: IO (BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> IO BG.CInt))
hs_bindgen_281a397e642c4489 :: IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
hs_bindgen_281a397e642c4489 =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
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_AtomicInt -> CInt -> IO CInt)
FFIType (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_281a397e642c4489_base
{-# NOINLINE sDL_SetAtomicInt #-}
sDL_SetAtomicInt :: BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> IO BG.CInt)
sDL_SetAtomicInt :: FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
sDL_SetAtomicInt =
IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
hs_bindgen_281a397e642c4489
foreign import ccall unsafe "hs_bindgen_db9688135888e49b"
hs_bindgen_db9688135888e49b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_db9688135888e49b :: IO (BG.FunPtr (BG.Ptr SDL_AtomicInt -> IO BG.CInt))
hs_bindgen_db9688135888e49b :: IO (FunPtr (Ptr SDL_AtomicInt -> IO CInt))
hs_bindgen_db9688135888e49b =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicInt -> IO CInt))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_AtomicInt -> IO CInt))
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_AtomicInt -> IO CInt)
FFIType (FunPtr (Ptr SDL_AtomicInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> IO CInt)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_db9688135888e49b_base
{-# NOINLINE sDL_GetAtomicInt #-}
sDL_GetAtomicInt :: BG.FunPtr (BG.Ptr SDL_AtomicInt -> IO BG.CInt)
sDL_GetAtomicInt :: FunPtr (Ptr SDL_AtomicInt -> IO CInt)
sDL_GetAtomicInt =
IO (FunPtr (Ptr SDL_AtomicInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> IO CInt)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicInt -> IO CInt))
hs_bindgen_db9688135888e49b
foreign import ccall unsafe "hs_bindgen_3e37f598766ca408"
hs_bindgen_3e37f598766ca408_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_3e37f598766ca408 :: IO (BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> IO BG.CInt))
hs_bindgen_3e37f598766ca408 :: IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
hs_bindgen_3e37f598766ca408 =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
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_AtomicInt -> CInt -> IO CInt)
FFIType (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_3e37f598766ca408_base
{-# NOINLINE sDL_AddAtomicInt #-}
sDL_AddAtomicInt :: BG.FunPtr (BG.Ptr SDL_AtomicInt -> BG.CInt -> IO BG.CInt)
sDL_AddAtomicInt :: FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
sDL_AddAtomicInt =
IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
-> FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicInt -> CInt -> IO CInt))
hs_bindgen_3e37f598766ca408
foreign import ccall unsafe "hs_bindgen_b4be57e876b926c0"
hs_bindgen_b4be57e876b926c0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_b4be57e876b926c0
:: IO
( BG.FunPtr
( BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
)
)
hs_bindgen_b4be57e876b926c0 :: IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool))
hs_bindgen_b4be57e876b926c0 =
(FunPtr Void
-> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> 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_AtomicU32 -> Uint32 -> Uint32 -> IO CBool)
FFIType
(FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool))
-> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_b4be57e876b926c0_base
{-# NOINLINE sDL_CompareAndSwapAtomicU32 #-}
sDL_CompareAndSwapAtomicU32
:: BG.FunPtr
( BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
)
sDL_CompareAndSwapAtomicU32 :: FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool)
sDL_CompareAndSwapAtomicU32 =
IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool))
-> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool))
hs_bindgen_b4be57e876b926c0
foreign import ccall unsafe "hs_bindgen_34e65bfeeaed8bb5"
hs_bindgen_34e65bfeeaed8bb5_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_34e65bfeeaed8bb5
:: IO
( BG.FunPtr
(BG.Ptr SDL_AtomicU32 -> SDL3.Sys.Bindgen.Stdinc.Uint32 -> IO SDL3.Sys.Bindgen.Stdinc.Uint32)
)
hs_bindgen_34e65bfeeaed8bb5 :: IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
hs_bindgen_34e65bfeeaed8bb5 =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
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_AtomicU32 -> Uint32 -> IO Uint32)
FFIType (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_34e65bfeeaed8bb5_base
{-# NOINLINE sDL_SetAtomicU32 #-}
sDL_SetAtomicU32
:: BG.FunPtr
(BG.Ptr SDL_AtomicU32 -> SDL3.Sys.Bindgen.Stdinc.Uint32 -> IO SDL3.Sys.Bindgen.Stdinc.Uint32)
sDL_SetAtomicU32 :: FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32)
sDL_SetAtomicU32 =
IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32))
hs_bindgen_34e65bfeeaed8bb5
foreign import ccall unsafe "hs_bindgen_89429d58246e8835"
hs_bindgen_89429d58246e8835_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_89429d58246e8835
:: IO (BG.FunPtr (BG.Ptr SDL_AtomicU32 -> IO SDL3.Sys.Bindgen.Stdinc.Uint32))
hs_bindgen_89429d58246e8835 :: IO (FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
hs_bindgen_89429d58246e8835 =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
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_AtomicU32 -> IO Uint32)
FFIType (FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> IO Uint32)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_89429d58246e8835_base
{-# NOINLINE sDL_GetAtomicU32 #-}
sDL_GetAtomicU32 :: BG.FunPtr (BG.Ptr SDL_AtomicU32 -> IO SDL3.Sys.Bindgen.Stdinc.Uint32)
sDL_GetAtomicU32 :: FunPtr (Ptr SDL_AtomicU32 -> IO Uint32)
sDL_GetAtomicU32 =
IO (FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> IO Uint32)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicU32 -> IO Uint32))
hs_bindgen_89429d58246e8835
foreign import ccall unsafe "hs_bindgen_74ebd3ff8c83f38e"
hs_bindgen_74ebd3ff8c83f38e_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_74ebd3ff8c83f38e
:: IO (BG.FunPtr (BG.Ptr SDL_AtomicU32 -> BG.CInt -> IO SDL3.Sys.Bindgen.Stdinc.Uint32))
hs_bindgen_74ebd3ff8c83f38e :: IO (FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
hs_bindgen_74ebd3ff8c83f38e =
(FunPtr Void -> FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
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_AtomicU32 -> CInt -> IO Uint32)
FFIType (FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_74ebd3ff8c83f38e_base
{-# NOINLINE sDL_AddAtomicU32 #-}
sDL_AddAtomicU32 :: BG.FunPtr (BG.Ptr SDL_AtomicU32 -> BG.CInt -> IO SDL3.Sys.Bindgen.Stdinc.Uint32)
sDL_AddAtomicU32 :: FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32)
sDL_AddAtomicU32 =
IO (FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
-> FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_AtomicU32 -> CInt -> IO Uint32))
hs_bindgen_74ebd3ff8c83f38e
foreign import ccall unsafe "hs_bindgen_6871c50a63bfd9f4"
hs_bindgen_6871c50a63bfd9f4_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_6871c50a63bfd9f4
:: IO (BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool))
hs_bindgen_6871c50a63bfd9f4 :: IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool))
hs_bindgen_6871c50a63bfd9f4 =
(FunPtr Void
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> 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 (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool)
FFIType
(FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool))
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_6871c50a63bfd9f4_base
{-# NOINLINE sDL_CompareAndSwapAtomicPointer #-}
sDL_CompareAndSwapAtomicPointer
:: BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> BG.Ptr BG.Void -> BG.Ptr BG.Void -> IO BG.CBool)
sDL_CompareAndSwapAtomicPointer :: FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool)
sDL_CompareAndSwapAtomicPointer =
IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool))
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool))
hs_bindgen_6871c50a63bfd9f4
foreign import ccall unsafe "hs_bindgen_f4bd3696da14dba9"
hs_bindgen_f4bd3696da14dba9_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_f4bd3696da14dba9
:: IO (BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void)))
hs_bindgen_f4bd3696da14dba9 :: IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)))
hs_bindgen_f4bd3696da14dba9 =
(FunPtr Void
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> 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 (Ptr Void) -> Ptr Void -> IO (Ptr Void))
FFIType (FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)))
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_f4bd3696da14dba9_base
{-# NOINLINE sDL_SetAtomicPointer #-}
sDL_SetAtomicPointer :: BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> BG.Ptr BG.Void -> IO (BG.Ptr BG.Void))
sDL_SetAtomicPointer :: FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void))
sDL_SetAtomicPointer =
IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)))
-> FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)))
hs_bindgen_f4bd3696da14dba9
foreign import ccall unsafe "hs_bindgen_dc36e65ef974254e"
hs_bindgen_dc36e65ef974254e_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_dc36e65ef974254e :: IO (BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> IO (BG.Ptr BG.Void)))
hs_bindgen_dc36e65ef974254e :: IO (FunPtr (Ptr (Ptr Void) -> IO (Ptr Void)))
hs_bindgen_dc36e65ef974254e =
(FunPtr Void -> FunPtr (Ptr (Ptr Void) -> IO (Ptr Void)))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr (Ptr Void) -> 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 (Ptr Void) -> IO (Ptr Void))
FFIType (FunPtr (Ptr (Ptr Void) -> IO (Ptr Void)))
-> FunPtr (Ptr (Ptr Void) -> IO (Ptr Void))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_dc36e65ef974254e_base
{-# NOINLINE sDL_GetAtomicPointer #-}
sDL_GetAtomicPointer :: BG.FunPtr (BG.Ptr (BG.Ptr BG.Void) -> IO (BG.Ptr BG.Void))
sDL_GetAtomicPointer :: FunPtr (Ptr (Ptr Void) -> IO (Ptr Void))
sDL_GetAtomicPointer =
IO (FunPtr (Ptr (Ptr Void) -> IO (Ptr Void)))
-> FunPtr (Ptr (Ptr Void) -> IO (Ptr Void))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr (Ptr Void) -> IO (Ptr Void)))
hs_bindgen_dc36e65ef974254e