{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Atomic.Unsafe (
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_TryLockSpinlock,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_LockSpinlock,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_UnlockSpinlock,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_MemoryBarrierReleaseFunction,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_MemoryBarrierAcquireFunction,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_CompareAndSwapAtomicInt,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_SetAtomicInt,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_GetAtomicInt,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_AddAtomicInt,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_CompareAndSwapAtomicU32,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_SetAtomicU32,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_GetAtomicU32,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_AddAtomicU32,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_CompareAndSwapAtomicPointer,
SDL3.Sys.Bindgen.Atomic.Unsafe.sDL_SetAtomicPointer,
SDL3.Sys.Bindgen.Atomic.Unsafe.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_7e1a623878ef7201 ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " return (SDL_TryLockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_ac33cd18d7856e17 ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " (SDL_LockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_025b3bf7538a123c ("
, " SDL_SpinLock *arg1"
, ")"
, "{"
, " (SDL_UnlockSpinlock)(arg1);"
, "}"
, "void hs_bindgen_0e27a69a6cca6aac (void)"
, "{"
, " (SDL_MemoryBarrierReleaseFunction)();"
, "}"
, "void hs_bindgen_0eaa15705859b209 (void)"
, "{"
, " (SDL_MemoryBarrierAcquireFunction)();"
, "}"
, "_Bool hs_bindgen_7528ef136d782538 ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2,"
, " signed int arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicInt)(arg1, arg2, arg3);"
, "}"
, "signed int hs_bindgen_6267a61e0fd93b33 ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return (SDL_SetAtomicInt)(arg1, arg2);"
, "}"
, "signed int hs_bindgen_5d8655898ff6cb2a ("
, " SDL_AtomicInt *arg1"
, ")"
, "{"
, " return (SDL_GetAtomicInt)(arg1);"
, "}"
, "signed int hs_bindgen_072d591dbe0586a7 ("
, " SDL_AtomicInt *arg1,"
, " signed int arg2"
, ")"
, "{"
, " return (SDL_AddAtomicInt)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_f42a3f89648096cd ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2,"
, " Uint32 arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicU32)(arg1, arg2, arg3);"
, "}"
, "Uint32 hs_bindgen_f11ee3aacbcad44d ("
, " SDL_AtomicU32 *arg1,"
, " Uint32 arg2"
, ")"
, "{"
, " return (SDL_SetAtomicU32)(arg1, arg2);"
, "}"
, "Uint32 hs_bindgen_8dd395b4cca78369 ("
, " SDL_AtomicU32 *arg1"
, ")"
, "{"
, " return (SDL_GetAtomicU32)(arg1);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#include <SDL3/SDL_error.h>"
, "Uint32 hs_bindgen_faa1fbc7406c4097 ("
, " 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_b184ba517671509d ("
, " void **arg1,"
, " void *arg2,"
, " void *arg3"
, ")"
, "{"
, " return (SDL_CompareAndSwapAtomicPointer)(arg1, arg2, arg3);"
, "}"
, "void *hs_bindgen_c511073c2deacde8 ("
, " void **arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_SetAtomicPointer)(arg1, arg2);"
, "}"
, "void *hs_bindgen_24c92517dd70cd57 ("
, " void **arg1"
, ")"
, "{"
, " return (SDL_GetAtomicPointer)(arg1);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_7e1a623878ef7201"
hs_bindgen_7e1a623878ef7201_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_7e1a623878ef7201
:: BG.Ptr SDL_SpinLock
-> IO BG.CBool
hs_bindgen_7e1a623878ef7201 :: Ptr SDL_SpinLock -> IO CBool
hs_bindgen_7e1a623878ef7201 =
\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_7e1a623878ef7201_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_7e1a623878ef7201
foreign import ccall unsafe "hs_bindgen_ac33cd18d7856e17"
hs_bindgen_ac33cd18d7856e17_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_ac33cd18d7856e17
:: BG.Ptr SDL_SpinLock
-> IO ()
hs_bindgen_ac33cd18d7856e17 :: Ptr SDL_SpinLock -> IO ()
hs_bindgen_ac33cd18d7856e17 =
\Ptr SDL_SpinLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_ac33cd18d7856e17_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_ac33cd18d7856e17
foreign import ccall unsafe "hs_bindgen_025b3bf7538a123c"
hs_bindgen_025b3bf7538a123c_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_025b3bf7538a123c
:: BG.Ptr SDL_SpinLock
-> IO ()
hs_bindgen_025b3bf7538a123c :: Ptr SDL_SpinLock -> IO ()
hs_bindgen_025b3bf7538a123c =
\Ptr SDL_SpinLock
x0 ->
Ptr Void -> IO ()
hs_bindgen_025b3bf7538a123c_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_025b3bf7538a123c
foreign import ccall unsafe "hs_bindgen_0e27a69a6cca6aac"
hs_bindgen_0e27a69a6cca6aac_base
:: IO ()
hs_bindgen_0e27a69a6cca6aac :: IO ()
hs_bindgen_0e27a69a6cca6aac :: IO ()
hs_bindgen_0e27a69a6cca6aac =
IO ()
hs_bindgen_0e27a69a6cca6aac_base
sDL_MemoryBarrierReleaseFunction :: IO ()
sDL_MemoryBarrierReleaseFunction :: IO ()
sDL_MemoryBarrierReleaseFunction =
IO ()
hs_bindgen_0e27a69a6cca6aac
foreign import ccall unsafe "hs_bindgen_0eaa15705859b209"
hs_bindgen_0eaa15705859b209_base
:: IO ()
hs_bindgen_0eaa15705859b209 :: IO ()
hs_bindgen_0eaa15705859b209 :: IO ()
hs_bindgen_0eaa15705859b209 =
IO ()
hs_bindgen_0eaa15705859b209_base
sDL_MemoryBarrierAcquireFunction :: IO ()
sDL_MemoryBarrierAcquireFunction :: IO ()
sDL_MemoryBarrierAcquireFunction =
IO ()
hs_bindgen_0eaa15705859b209
foreign import ccall unsafe "hs_bindgen_7528ef136d782538"
hs_bindgen_7528ef136d782538_base
:: BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_7528ef136d782538
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_7528ef136d782538 :: Ptr SDL_AtomicInt -> CInt -> CInt -> IO CBool
hs_bindgen_7528ef136d782538 =
\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_7528ef136d782538_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_7528ef136d782538
foreign import ccall unsafe "hs_bindgen_6267a61e0fd93b33"
hs_bindgen_6267a61e0fd93b33_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_6267a61e0fd93b33
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
hs_bindgen_6267a61e0fd93b33 :: Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_6267a61e0fd93b33 =
\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_6267a61e0fd93b33_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_6267a61e0fd93b33
foreign import ccall unsafe "hs_bindgen_5d8655898ff6cb2a"
hs_bindgen_5d8655898ff6cb2a_base
:: BG.Ptr BG.Void
-> IO BG.CInt
hs_bindgen_5d8655898ff6cb2a
:: BG.Ptr SDL_AtomicInt
-> IO BG.CInt
hs_bindgen_5d8655898ff6cb2a :: Ptr SDL_AtomicInt -> IO CInt
hs_bindgen_5d8655898ff6cb2a =
\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_5d8655898ff6cb2a_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_5d8655898ff6cb2a
foreign import ccall unsafe "hs_bindgen_072d591dbe0586a7"
hs_bindgen_072d591dbe0586a7_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO BG.CInt
hs_bindgen_072d591dbe0586a7
:: BG.Ptr SDL_AtomicInt
-> BG.CInt
-> IO BG.CInt
hs_bindgen_072d591dbe0586a7 :: Ptr SDL_AtomicInt -> CInt -> IO CInt
hs_bindgen_072d591dbe0586a7 =
\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_072d591dbe0586a7_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_072d591dbe0586a7
foreign import ccall unsafe "hs_bindgen_f42a3f89648096cd"
hs_bindgen_f42a3f89648096cd_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CBool
hs_bindgen_f42a3f89648096cd
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_f42a3f89648096cd :: Ptr SDL_AtomicU32 -> Uint32 -> Uint32 -> IO CBool
hs_bindgen_f42a3f89648096cd =
\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_f42a3f89648096cd_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_f42a3f89648096cd
foreign import ccall unsafe "hs_bindgen_f11ee3aacbcad44d"
hs_bindgen_f11ee3aacbcad44d_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_f11ee3aacbcad44d
:: BG.Ptr SDL_AtomicU32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_f11ee3aacbcad44d :: Ptr SDL_AtomicU32 -> Uint32 -> IO Uint32
hs_bindgen_f11ee3aacbcad44d =
\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_f11ee3aacbcad44d_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_f11ee3aacbcad44d
foreign import ccall unsafe "hs_bindgen_8dd395b4cca78369"
hs_bindgen_8dd395b4cca78369_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_8dd395b4cca78369
:: BG.Ptr SDL_AtomicU32
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_8dd395b4cca78369 :: Ptr SDL_AtomicU32 -> IO Uint32
hs_bindgen_8dd395b4cca78369 =
\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_8dd395b4cca78369_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_8dd395b4cca78369
foreign import ccall unsafe "hs_bindgen_faa1fbc7406c4097"
hs_bindgen_faa1fbc7406c4097_base
:: BG.Ptr BG.Void
-> BG.CInt
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_faa1fbc7406c4097
:: BG.Ptr SDL_AtomicU32
-> BG.CInt
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_faa1fbc7406c4097 :: Ptr SDL_AtomicU32 -> CInt -> IO Uint32
hs_bindgen_faa1fbc7406c4097 =
\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_faa1fbc7406c4097_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_faa1fbc7406c4097
foreign import ccall unsafe "hs_bindgen_b184ba517671509d"
hs_bindgen_b184ba517671509d_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_b184ba517671509d
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_b184ba517671509d :: Ptr (Ptr Void) -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_b184ba517671509d =
\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_b184ba517671509d_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_b184ba517671509d
foreign import ccall unsafe "hs_bindgen_c511073c2deacde8"
hs_bindgen_c511073c2deacde8_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_c511073c2deacde8
:: BG.Ptr (BG.Ptr BG.Void)
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_c511073c2deacde8 :: Ptr (Ptr Void) -> Ptr Void -> IO (Ptr Void)
hs_bindgen_c511073c2deacde8 =
\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_c511073c2deacde8_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_c511073c2deacde8
foreign import ccall unsafe "hs_bindgen_24c92517dd70cd57"
hs_bindgen_24c92517dd70cd57_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_24c92517dd70cd57
:: BG.Ptr (BG.Ptr BG.Void)
-> IO (BG.Ptr BG.Void)
hs_bindgen_24c92517dd70cd57 :: Ptr (Ptr Void) -> IO (Ptr Void)
hs_bindgen_24c92517dd70cd57 =
\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_24c92517dd70cd57_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_24c92517dd70cd57