{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Atomic.Safe (
SDL3.Sys.Bindgen.Atomic.Safe.sDL_TryLockSpinlock,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_LockSpinlock,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_UnlockSpinlock,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_MemoryBarrierReleaseFunction,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_MemoryBarrierAcquireFunction,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_CompareAndSwapAtomicInt,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_SetAtomicInt,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_GetAtomicInt,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_AddAtomicInt,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_CompareAndSwapAtomicU32,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_SetAtomicU32,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_GetAtomicU32,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_AddAtomicU32,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_CompareAndSwapAtomicPointer,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_SetAtomicPointer,
SDL3.Sys.Bindgen.Atomic.Safe.sDL_GetAtomicPointer,
)
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.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>"
, "_Bool hs_bindgen_172686d1676cd710 ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " return (SDL_TryLockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_24dd21497804fb35 ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " (SDL_LockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_db995a2e290168e8 ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " (SDL_UnlockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_242899706a6f2e17 (void)"
, "{"
, " (SDL_MemoryBarrierReleaseFunction)();"
, "}"
, "void hs_bindgen_4e0cd51f93ed2a72 (void)"
, "{"
, " (SDL_MemoryBarrierAcquireFunction)();"
, "}"
, "_Bool hs_bindgen_e3e24329b42ecc89 ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2,"
, " signed int arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicInt)(arg1, arg2, arg3);"
, "}"
, "signed int hs_bindgen_0b591b00447451f3 ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return (SDL_SetAtomicInt)(arg1, arg2);"
, "}"
, "signed int hs_bindgen_a79c0e141e6af2a9 ("
, " SDL_AtomicInt *arg1"
, ")"
, "{"
, " return (SDL_GetAtomicInt)(arg1);"
, "}"
, "signed int hs_bindgen_8436b21863a9d6bb ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return (SDL_AddAtomicInt)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_935e1a8a131d0775 ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2,"
, " Uint32 arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicU32)(arg1, arg2, arg3);"
, "}"
, "Uint32 hs_bindgen_14474ef0e01d438d ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " return (SDL_SetAtomicU32)(arg1, arg2);"
, "}"
, "Uint32 hs_bindgen_141a90ab67d079cd ("
, " SDL_AtomicU32 *arg1"
, ")"
, "{"
, " return (SDL_GetAtomicU32)(arg1);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "Uint32 hs_bindgen_a1640976428ead6d ("
, " SDL_AtomicU32 *arg1,"
, " signed int arg2"
, ")"
, "{"
, "#if SDL_VERSION_ATLEAST(3, 4, 0)"
, " return (SDL_AddAtomicU32)(arg1, arg2);"
, "#else"
, " (void)arg1; (void)arg2; SDL_SetError(\"SDL_AddAtomicU32 requires SDL >= 3.4.0\"); return 0;"
, "#endif"
, "}"
, "_Bool hs_bindgen_7fbbd1e4574eb707 ("
, " void **arg1,"
, " void *arg2,"
, " void *arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicPointer)(arg1, arg2, arg3);"
, "}"
, "void *hs_bindgen_169f34ca098fd557 ("
, " void **arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_SetAtomicPointer)(arg1, arg2);"
, "}"
, "void *hs_bindgen_330ea044308fd995 ("
, " void **arg1"
, ")"
, "{"
, " return (SDL_GetAtomicPointer)(arg1);"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_172686d1676cd710"
hs_bindgen_172686d1676cd710_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_172686d1676cd710
:: BG.Ptr SDL_SpinLock
-> IO BG.CBool
hs_bindgen_172686d1676cd710 :: Ptr SDL_SpinLock -> IO CBool
hs_bindgen_172686d1676cd710 =
\Ptr SDL_SpinLock
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_172686d1676cd710_base (Ptr SDL_SpinLock -> FFIType (Ptr SDL_SpinLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_SpinLock
x0))
sDL_TryLockSpinlock
:: BG.Ptr SDL_SpinLock
-> IO BG.CBool
sDL_TryLockSpinlock :: Ptr SDL_SpinLock -> IO CBool
sDL_TryLockSpinlock = Ptr SDL_SpinLock -> IO CBool
hs_bindgen_172686d1676cd710
foreign import ccall safe "hs_bindgen_24dd21497804fb35"
hs_bindgen_24dd21497804fb35_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_24dd21497804fb35
:: BG.Ptr SDL_SpinLock
-> IO ()
hs_bindgen_24dd21497804fb35 :: Ptr SDL_SpinLock -> IO ()
hs_bindgen_24dd21497804fb35 =
\Ptr SDL_SpinLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_24dd21497804fb35_base (Ptr SDL_SpinLock -> FFIType (Ptr SDL_SpinLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_SpinLock
x0)
sDL_LockSpinlock
:: BG.Ptr SDL_SpinLock
-> IO ()
sDL_LockSpinlock :: Ptr SDL_SpinLock -> IO ()
sDL_LockSpinlock = Ptr SDL_SpinLock -> IO ()
hs_bindgen_24dd21497804fb35
foreign import ccall safe "hs_bindgen_db995a2e290168e8"
hs_bindgen_db995a2e290168e8_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_db995a2e290168e8
:: BG.Ptr SDL_SpinLock
-> IO ()
hs_bindgen_db995a2e290168e8 :: Ptr SDL_SpinLock -> IO ()
hs_bindgen_db995a2e290168e8 =
\Ptr SDL_SpinLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_db995a2e290168e8_base (Ptr SDL_SpinLock -> FFIType (Ptr SDL_SpinLock)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_SpinLock
x0)
sDL_UnlockSpinlock
:: BG.Ptr SDL_SpinLock
-> IO ()
sDL_UnlockSpinlock :: Ptr SDL_SpinLock -> IO ()
sDL_UnlockSpinlock = Ptr SDL_SpinLock -> IO ()
hs_bindgen_db995a2e290168e8
foreign import ccall safe "hs_bindgen_242899706a6f2e17"
hs_bindgen_242899706a6f2e17_base
:: IO ()
hs_bindgen_242899706a6f2e17 :: IO ()
hs_bindgen_242899706a6f2e17 :: IO ()
hs_bindgen_242899706a6f2e17 =
IO ()
hs_bindgen_242899706a6f2e17_base
sDL_MemoryBarrierReleaseFunction :: IO ()
sDL_MemoryBarrierReleaseFunction :: IO ()
sDL_MemoryBarrierReleaseFunction =
IO ()
hs_bindgen_242899706a6f2e17
foreign import ccall safe "hs_bindgen_4e0cd51f93ed2a72"
hs_bindgen_4e0cd51f93ed2a72_base
:: IO ()
hs_bindgen_4e0cd51f93ed2a72 :: IO ()
hs_bindgen_4e0cd51f93ed2a72 :: IO ()
hs_bindgen_4e0cd51f93ed2a72 =
IO ()
hs_bindgen_4e0cd51f93ed2a72_base
sDL_MemoryBarrierAcquireFunction :: IO ()
sDL_MemoryBarrierAcquireFunction :: IO ()
sDL_MemoryBarrierAcquireFunction =
IO ()
hs_bindgen_4e0cd51f93ed2a72
foreign import ccall safe "hs_bindgen_e3e24329b42ecc89"
hs_bindgen_e3e24329b42ecc89_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_e3e24329b42ecc89
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_e3e24329b42ecc89 :: Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool
hs_bindgen_e3e24329b42ecc89 =
\Ptr SDL_AtomicInt
x0 ->
\CInt
x1 ->
\CInt
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 -> CInt -> CInt -> IO CBool
hs_bindgen_e3e24329b42ecc89_base (Ptr SDL_AtomicInt -> FFIType (Ptr SDL_AtomicInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicInt
x0) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2))
sDL_CompareAndSwapAtomicInt
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
sDL_CompareAndSwapAtomicInt :: Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool
sDL_CompareAndSwapAtomicInt =
Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool
hs_bindgen_e3e24329b42ecc89
foreign import ccall safe "hs_bindgen_0b591b00447451f3"
hs_bindgen_0b591b00447451f3_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_0b591b00447451f3
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
hs_bindgen_0b591b00447451f3 :: Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_0b591b00447451f3 =
\Ptr SDL_AtomicInt
x0 ->
\CInt
x1 ->
(CInt -> CInt) -> IO 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 CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> CInt -> IO CInt
hs_bindgen_0b591b00447451f3_base (Ptr SDL_AtomicInt -> FFIType (Ptr SDL_AtomicInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicInt
x0) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1))
sDL_SetAtomicInt
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
sDL_SetAtomicInt :: Ptr SDL_AtomicInt -> CInt -> IO CInt
sDL_SetAtomicInt = Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_0b591b00447451f3
foreign import ccall safe "hs_bindgen_a79c0e141e6af2a9"
hs_bindgen_a79c0e141e6af2a9_base
:: BG.Ptr BG.Void
-> IO BG.CInt
hs_bindgen_a79c0e141e6af2a9
:: BG.Ptr SDL_AtomicInt
-> IO BG.CInt
hs_bindgen_a79c0e141e6af2a9 :: Ptr SDL_AtomicInt -> IO CInt
hs_bindgen_a79c0e141e6af2a9 =
\Ptr SDL_AtomicInt
x0 ->
(CInt -> CInt) -> IO 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 CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CInt
hs_bindgen_a79c0e141e6af2a9_base (Ptr SDL_AtomicInt -> FFIType (Ptr SDL_AtomicInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicInt
x0))
sDL_GetAtomicInt
:: BG.Ptr SDL_AtomicInt
-> IO BG.CInt
sDL_GetAtomicInt :: Ptr SDL_AtomicInt -> IO CInt
sDL_GetAtomicInt = Ptr SDL_AtomicInt -> IO CInt
hs_bindgen_a79c0e141e6af2a9
foreign import ccall safe "hs_bindgen_8436b21863a9d6bb"
hs_bindgen_8436b21863a9d6bb_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_8436b21863a9d6bb
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
hs_bindgen_8436b21863a9d6bb :: Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_8436b21863a9d6bb =
\Ptr SDL_AtomicInt
x0 ->
\CInt
x1 ->
(CInt -> CInt) -> IO 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 CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> CInt -> IO CInt
hs_bindgen_8436b21863a9d6bb_base (Ptr SDL_AtomicInt -> FFIType (Ptr SDL_AtomicInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicInt
x0) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1))
sDL_AddAtomicInt
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
sDL_AddAtomicInt :: Ptr SDL_AtomicInt -> CInt -> IO CInt
sDL_AddAtomicInt = Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_8436b21863a9d6bb
foreign import ccall safe "hs_bindgen_935e1a8a131d0775"
hs_bindgen_935e1a8a131d0775_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_935e1a8a131d0775
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_935e1a8a131d0775 :: Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool
hs_bindgen_935e1a8a131d0775 =
\Ptr SDL_AtomicU32
x0 ->
\Uint32
x1 ->
\Uint32
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 -> Word32 -> Word32 -> IO CBool
hs_bindgen_935e1a8a131d0775_base (Ptr SDL_AtomicU32 -> FFIType (Ptr SDL_AtomicU32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicU32
x0) (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x1) (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x2))
sDL_CompareAndSwapAtomicU32
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
sDL_CompareAndSwapAtomicU32 :: Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool
sDL_CompareAndSwapAtomicU32 =
Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool
hs_bindgen_935e1a8a131d0775
foreign import ccall safe "hs_bindgen_14474ef0e01d438d"
hs_bindgen_14474ef0e01d438d_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_14474ef0e01d438d
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_14474ef0e01d438d :: Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32
hs_bindgen_14474ef0e01d438d =
\Ptr SDL_AtomicU32
x0 ->
\Uint32
x1 ->
(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 -> Word32 -> IO Word32
hs_bindgen_14474ef0e01d438d_base (Ptr SDL_AtomicU32 -> FFIType (Ptr SDL_AtomicU32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicU32
x0) (Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x1))
sDL_SetAtomicU32
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_SetAtomicU32 :: Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32
sDL_SetAtomicU32 = Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32
hs_bindgen_14474ef0e01d438d
foreign import ccall safe "hs_bindgen_141a90ab67d079cd"
hs_bindgen_141a90ab67d079cd_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_141a90ab67d079cd
:: BG.Ptr SDL_AtomicU32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_141a90ab67d079cd :: Ptr SDL_AtomicU32 -> IO Uint32
hs_bindgen_141a90ab67d079cd =
\Ptr SDL_AtomicU32
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_141a90ab67d079cd_base (Ptr SDL_AtomicU32 -> FFIType (Ptr SDL_AtomicU32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicU32
x0))
sDL_GetAtomicU32
:: BG.Ptr SDL_AtomicU32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_GetAtomicU32 :: Ptr SDL_AtomicU32 -> IO Uint32
sDL_GetAtomicU32 = Ptr SDL_AtomicU32 -> IO Uint32
hs_bindgen_141a90ab67d079cd
foreign import ccall safe "hs_bindgen_a1640976428ead6d"
hs_bindgen_a1640976428ead6d_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_a1640976428ead6d
:: BG.Ptr SDL_AtomicU32
-> BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_a1640976428ead6d :: Ptr SDL_AtomicU32 -> CInt -> IO Uint32
hs_bindgen_a1640976428ead6d =
\Ptr SDL_AtomicU32
x0 ->
\CInt
x1 ->
(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 -> CInt -> IO Word32
hs_bindgen_a1640976428ead6d_base (Ptr SDL_AtomicU32 -> FFIType (Ptr SDL_AtomicU32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AtomicU32
x0) (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x1))
sDL_AddAtomicU32
:: BG.Ptr SDL_AtomicU32
-> BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_AddAtomicU32 :: Ptr SDL_AtomicU32 -> CInt -> IO Uint32
sDL_AddAtomicU32 = Ptr SDL_AtomicU32 -> CInt -> IO Uint32
hs_bindgen_a1640976428ead6d
foreign import ccall safe "hs_bindgen_7fbbd1e4574eb707"
hs_bindgen_7fbbd1e4574eb707_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_7fbbd1e4574eb707
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_7fbbd1e4574eb707 :: Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_7fbbd1e4574eb707 =
\Ptr (Ptr Void)
x0 ->
\Ptr Void
x1 ->
\Ptr Void
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 -> Ptr Void -> IO CBool
hs_bindgen_7fbbd1e4574eb707_base (Ptr (Ptr Void) -> FFIType (Ptr (Ptr Void))
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr (Ptr Void)
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x2))
sDL_CompareAndSwapAtomicPointer
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_CompareAndSwapAtomicPointer :: Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool
sDL_CompareAndSwapAtomicPointer =
Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_7fbbd1e4574eb707
foreign import ccall safe "hs_bindgen_169f34ca098fd557"
hs_bindgen_169f34ca098fd557_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_169f34ca098fd557
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_169f34ca098fd557 :: Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)
hs_bindgen_169f34ca098fd557 =
\Ptr (Ptr Void)
x0 ->
\Ptr Void
x1 ->
(Ptr Void -> Ptr Void) -> IO (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 Ptr Void -> Ptr Void
FFIType (Ptr Void) -> Ptr Void
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO (Ptr Void)
hs_bindgen_169f34ca098fd557_base (Ptr (Ptr Void) -> FFIType (Ptr (Ptr Void))
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr (Ptr Void)
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1))
sDL_SetAtomicPointer
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
sDL_SetAtomicPointer :: Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)
sDL_SetAtomicPointer = Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)
hs_bindgen_169f34ca098fd557
foreign import ccall safe "hs_bindgen_330ea044308fd995"
hs_bindgen_330ea044308fd995_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_330ea044308fd995
:: BG.Ptr (BG.Ptr BG.Void)
-> IO (BG.Ptr BG.Void)
hs_bindgen_330ea044308fd995 :: Ptr (Ptr Void) -> IO (Ptr Void)
hs_bindgen_330ea044308fd995 =
\Ptr (Ptr Void)
x0 ->
(Ptr Void -> Ptr Void) -> IO (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 Ptr Void -> Ptr Void
FFIType (Ptr Void) -> Ptr Void
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO (Ptr Void)
hs_bindgen_330ea044308fd995_base (Ptr (Ptr Void) -> FFIType (Ptr (Ptr Void))
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr (Ptr Void)
x0))
sDL_GetAtomicPointer
:: BG.Ptr (BG.Ptr BG.Void)
-> IO (BG.Ptr BG.Void)
sDL_GetAtomicPointer :: Ptr (Ptr Void) -> IO (Ptr Void)
sDL_GetAtomicPointer = Ptr (Ptr Void) -> IO (Ptr Void)
hs_bindgen_330ea044308fd995