{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Asyncio.Unsafe (
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_AsyncIOFromFile,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_GetAsyncIOSize,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_ReadAsyncIO,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_WriteAsyncIO,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_CloseAsyncIO,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_CreateAsyncIOQueue,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_DestroyAsyncIOQueue,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_GetAsyncIOResult,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_WaitAsyncIOResult,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_SignalAsyncIOQueue,
SDL3.Sys.Bindgen.Asyncio.Unsafe.sDL_LoadFileAsync,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Asyncio
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_asyncio.h>"
, "SDL_AsyncIO *hs_bindgen_b82f292b6e7c7687 ("
, " char const *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_AsyncIOFromFile)(arg1, arg2);"
, "}"
, "Sint64 hs_bindgen_11b3160b0d9e0815 ("
, " SDL_AsyncIO *arg1"
, ")"
, "{"
, " return (SDL_GetAsyncIOSize)(arg1);"
, "}"
, "_Bool hs_bindgen_a7608bfc5c5b7642 ("
, " SDL_AsyncIO *arg1,"
, " void *arg2,"
, " Uint64 arg3,"
, " Uint64 arg4,"
, " SDL_AsyncIOQueue *arg5,"
, " void *arg6"
, ")"
, "{"
, " return (SDL_ReadAsyncIO)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "_Bool hs_bindgen_bb28a3e2adf0fdc9 ("
, " SDL_AsyncIO *arg1,"
, " void *arg2,"
, " Uint64 arg3,"
, " Uint64 arg4,"
, " SDL_AsyncIOQueue *arg5,"
, " void *arg6"
, ")"
, "{"
, " return (SDL_WriteAsyncIO)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "_Bool hs_bindgen_59b28e6203185e0c ("
, " SDL_AsyncIO *arg1,"
, " _Bool arg2,"
, " SDL_AsyncIOQueue *arg3,"
, " void *arg4"
, ")"
, "{"
, " return (SDL_CloseAsyncIO)(arg1, arg2, arg3, arg4);"
, "}"
, "SDL_AsyncIOQueue *hs_bindgen_0b66ff14f8c0ce55 (void)"
, "{"
, " return (SDL_CreateAsyncIOQueue)();"
, "}"
, "void hs_bindgen_2ac8fde123b3e134 ("
, " SDL_AsyncIOQueue *arg1"
, ")"
, "{"
, " (SDL_DestroyAsyncIOQueue)(arg1);"
, "}"
, "_Bool hs_bindgen_a47b3011385bfa90 ("
, " SDL_AsyncIOQueue *arg1,"
, " SDL_AsyncIOOutcome *arg2"
, ")"
, "{"
, " return (SDL_GetAsyncIOResult)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_c57196121c6d7557 ("
, " SDL_AsyncIOQueue *arg1,"
, " SDL_AsyncIOOutcome *arg2,"
, " Sint32 arg3"
, ")"
, "{"
, " return (SDL_WaitAsyncIOResult)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_f68ee0d177862e72 ("
, " SDL_AsyncIOQueue *arg1"
, ")"
, "{"
, " (SDL_SignalAsyncIOQueue)(arg1);"
, "}"
, "_Bool hs_bindgen_c0a4fd9b015deb20 ("
, " char const *arg1,"
, " SDL_AsyncIOQueue *arg2,"
, " void *arg3"
, ")"
, "{"
, " return (SDL_LoadFileAsync)(arg1, arg2, arg3);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_b82f292b6e7c7687"
hs_bindgen_b82f292b6e7c7687_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_b82f292b6e7c7687
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO (BG.Ptr SDL_AsyncIO)
hs_bindgen_b82f292b6e7c7687 :: PtrConst CChar -> PtrConst CChar -> IO (Ptr SDL_AsyncIO)
hs_bindgen_b82f292b6e7c7687 =
\PtrConst CChar
x0 ->
\PtrConst CChar
x1 ->
(Ptr Void -> Ptr SDL_AsyncIO)
-> IO (Ptr Void) -> IO (Ptr SDL_AsyncIO)
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_AsyncIO
FFIType (Ptr SDL_AsyncIO) -> Ptr SDL_AsyncIO
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO (Ptr Void)
hs_bindgen_b82f292b6e7c7687_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1))
sDL_AsyncIOFromFile
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO (BG.Ptr SDL_AsyncIO)
sDL_AsyncIOFromFile :: PtrConst CChar -> PtrConst CChar -> IO (Ptr SDL_AsyncIO)
sDL_AsyncIOFromFile = PtrConst CChar -> PtrConst CChar -> IO (Ptr SDL_AsyncIO)
hs_bindgen_b82f292b6e7c7687
foreign import ccall unsafe "hs_bindgen_11b3160b0d9e0815"
hs_bindgen_11b3160b0d9e0815_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Int64
hs_bindgen_11b3160b0d9e0815
:: BG.Ptr SDL_AsyncIO
-> IO SDL3.Sys.Bindgen.Stdinc.Sint64
hs_bindgen_11b3160b0d9e0815 :: Ptr SDL_AsyncIO -> IO Sint64
hs_bindgen_11b3160b0d9e0815 =
\Ptr SDL_AsyncIO
x0 ->
(Int64 -> Sint64) -> IO Int64 -> IO Sint64
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Int64 -> Sint64
FFIType Sint64 -> Sint64
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO Int64
hs_bindgen_11b3160b0d9e0815_base (Ptr SDL_AsyncIO -> FFIType (Ptr SDL_AsyncIO)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIO
x0))
sDL_GetAsyncIOSize
:: BG.Ptr SDL_AsyncIO
-> IO SDL3.Sys.Bindgen.Stdinc.Sint64
sDL_GetAsyncIOSize :: Ptr SDL_AsyncIO -> IO Sint64
sDL_GetAsyncIOSize = Ptr SDL_AsyncIO -> IO Sint64
hs_bindgen_11b3160b0d9e0815
foreign import ccall unsafe "hs_bindgen_a7608bfc5c5b7642"
hs_bindgen_a7608bfc5c5b7642_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_a7608bfc5c5b7642
:: BG.Ptr SDL_AsyncIO
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_a7608bfc5c5b7642 :: Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
hs_bindgen_a7608bfc5c5b7642 =
\Ptr SDL_AsyncIO
x0 ->
\Ptr Void
x1 ->
\Uint64
x2 ->
\Uint64
x3 ->
\Ptr SDL_AsyncIOQueue
x4 ->
\Ptr Void
x5 ->
(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 -> Word64 -> Word64 -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_a7608bfc5c5b7642_base
(Ptr SDL_AsyncIO -> FFIType (Ptr SDL_AsyncIO)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIO
x0)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x2)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x3)
(Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x4)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x5)
)
sDL_ReadAsyncIO
:: BG.Ptr SDL_AsyncIO
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_ReadAsyncIO :: Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
sDL_ReadAsyncIO = Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
hs_bindgen_a7608bfc5c5b7642
foreign import ccall unsafe "hs_bindgen_bb28a3e2adf0fdc9"
hs_bindgen_bb28a3e2adf0fdc9_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> HsBindgen.Runtime.LibC.Word64
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_bb28a3e2adf0fdc9
:: BG.Ptr SDL_AsyncIO
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_bb28a3e2adf0fdc9 :: Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
hs_bindgen_bb28a3e2adf0fdc9 =
\Ptr SDL_AsyncIO
x0 ->
\Ptr Void
x1 ->
\Uint64
x2 ->
\Uint64
x3 ->
\Ptr SDL_AsyncIOQueue
x4 ->
\Ptr Void
x5 ->
(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 -> Word64 -> Word64 -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_bb28a3e2adf0fdc9_base
(Ptr SDL_AsyncIO -> FFIType (Ptr SDL_AsyncIO)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIO
x0)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x2)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x3)
(Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x4)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x5)
)
sDL_WriteAsyncIO
:: BG.Ptr SDL_AsyncIO
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_WriteAsyncIO :: Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
sDL_WriteAsyncIO = Ptr SDL_AsyncIO
-> Ptr Void
-> Uint64
-> Uint64
-> Ptr SDL_AsyncIOQueue
-> Ptr Void
-> IO CBool
hs_bindgen_bb28a3e2adf0fdc9
foreign import ccall unsafe "hs_bindgen_59b28e6203185e0c"
hs_bindgen_59b28e6203185e0c_base
:: BG.Ptr BG.Void
-> BG.CBool
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_59b28e6203185e0c
:: BG.Ptr SDL_AsyncIO
-> BG.CBool
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_59b28e6203185e0c :: Ptr SDL_AsyncIO
-> CBool -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
hs_bindgen_59b28e6203185e0c =
\Ptr SDL_AsyncIO
x0 ->
\CBool
x1 ->
\Ptr SDL_AsyncIOQueue
x2 ->
\Ptr Void
x3 ->
(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 -> CBool -> Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_59b28e6203185e0c_base
(Ptr SDL_AsyncIO -> FFIType (Ptr SDL_AsyncIO)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIO
x0)
(CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x1)
(Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x2)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x3)
)
sDL_CloseAsyncIO
:: BG.Ptr SDL_AsyncIO
-> BG.CBool
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_CloseAsyncIO :: Ptr SDL_AsyncIO
-> CBool -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
sDL_CloseAsyncIO = Ptr SDL_AsyncIO
-> CBool -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
hs_bindgen_59b28e6203185e0c
foreign import ccall unsafe "hs_bindgen_0b66ff14f8c0ce55"
hs_bindgen_0b66ff14f8c0ce55_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_0b66ff14f8c0ce55 :: IO (BG.Ptr SDL_AsyncIOQueue)
hs_bindgen_0b66ff14f8c0ce55 :: IO (Ptr SDL_AsyncIOQueue)
hs_bindgen_0b66ff14f8c0ce55 =
(Ptr Void -> Ptr SDL_AsyncIOQueue)
-> IO (Ptr Void) -> IO (Ptr SDL_AsyncIOQueue)
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_AsyncIOQueue
FFIType (Ptr SDL_AsyncIOQueue) -> Ptr SDL_AsyncIOQueue
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_0b66ff14f8c0ce55_base
sDL_CreateAsyncIOQueue :: IO (BG.Ptr SDL_AsyncIOQueue)
sDL_CreateAsyncIOQueue :: IO (Ptr SDL_AsyncIOQueue)
sDL_CreateAsyncIOQueue = IO (Ptr SDL_AsyncIOQueue)
hs_bindgen_0b66ff14f8c0ce55
foreign import ccall unsafe "hs_bindgen_2ac8fde123b3e134"
hs_bindgen_2ac8fde123b3e134_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_2ac8fde123b3e134
:: BG.Ptr SDL_AsyncIOQueue
-> IO ()
hs_bindgen_2ac8fde123b3e134 :: Ptr SDL_AsyncIOQueue -> IO ()
hs_bindgen_2ac8fde123b3e134 =
\Ptr SDL_AsyncIOQueue
x0 ->
Ptr Void -> IO ()
hs_bindgen_2ac8fde123b3e134_base (Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x0)
sDL_DestroyAsyncIOQueue
:: BG.Ptr SDL_AsyncIOQueue
-> IO ()
sDL_DestroyAsyncIOQueue :: Ptr SDL_AsyncIOQueue -> IO ()
sDL_DestroyAsyncIOQueue = Ptr SDL_AsyncIOQueue -> IO ()
hs_bindgen_2ac8fde123b3e134
foreign import ccall unsafe "hs_bindgen_a47b3011385bfa90"
hs_bindgen_a47b3011385bfa90_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_a47b3011385bfa90
:: BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr SDL_AsyncIOOutcome
-> IO BG.CBool
hs_bindgen_a47b3011385bfa90 :: Ptr SDL_AsyncIOQueue -> Ptr SDL_AsyncIOOutcome -> IO CBool
hs_bindgen_a47b3011385bfa90 =
\Ptr SDL_AsyncIOQueue
x0 ->
\Ptr SDL_AsyncIOOutcome
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 -> Ptr Void -> IO CBool
hs_bindgen_a47b3011385bfa90_base (Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x0) (Ptr SDL_AsyncIOOutcome -> FFIType (Ptr SDL_AsyncIOOutcome)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOOutcome
x1))
sDL_GetAsyncIOResult
:: BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr SDL_AsyncIOOutcome
-> IO BG.CBool
sDL_GetAsyncIOResult :: Ptr SDL_AsyncIOQueue -> Ptr SDL_AsyncIOOutcome -> IO CBool
sDL_GetAsyncIOResult = Ptr SDL_AsyncIOQueue -> Ptr SDL_AsyncIOOutcome -> IO CBool
hs_bindgen_a47b3011385bfa90
foreign import ccall unsafe "hs_bindgen_c57196121c6d7557"
hs_bindgen_c57196121c6d7557_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Int32
-> IO BG.CBool
hs_bindgen_c57196121c6d7557
:: BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr SDL_AsyncIOOutcome
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
hs_bindgen_c57196121c6d7557 :: Ptr SDL_AsyncIOQueue
-> Ptr SDL_AsyncIOOutcome -> Sint32 -> IO CBool
hs_bindgen_c57196121c6d7557 =
\Ptr SDL_AsyncIOQueue
x0 ->
\Ptr SDL_AsyncIOOutcome
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_c57196121c6d7557_base (Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x0) (Ptr SDL_AsyncIOOutcome -> FFIType (Ptr SDL_AsyncIOOutcome)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOOutcome
x1) (Sint32 -> FFIType Sint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Sint32
x2))
sDL_WaitAsyncIOResult
:: BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr SDL_AsyncIOOutcome
-> SDL3.Sys.Bindgen.Stdinc.Sint32
-> IO BG.CBool
sDL_WaitAsyncIOResult :: Ptr SDL_AsyncIOQueue
-> Ptr SDL_AsyncIOOutcome -> Sint32 -> IO CBool
sDL_WaitAsyncIOResult = Ptr SDL_AsyncIOQueue
-> Ptr SDL_AsyncIOOutcome -> Sint32 -> IO CBool
hs_bindgen_c57196121c6d7557
foreign import ccall unsafe "hs_bindgen_f68ee0d177862e72"
hs_bindgen_f68ee0d177862e72_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_f68ee0d177862e72
:: BG.Ptr SDL_AsyncIOQueue
-> IO ()
hs_bindgen_f68ee0d177862e72 :: Ptr SDL_AsyncIOQueue -> IO ()
hs_bindgen_f68ee0d177862e72 =
\Ptr SDL_AsyncIOQueue
x0 ->
Ptr Void -> IO ()
hs_bindgen_f68ee0d177862e72_base (Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x0)
sDL_SignalAsyncIOQueue
:: BG.Ptr SDL_AsyncIOQueue
-> IO ()
sDL_SignalAsyncIOQueue :: Ptr SDL_AsyncIOQueue -> IO ()
sDL_SignalAsyncIOQueue = Ptr SDL_AsyncIOQueue -> IO ()
hs_bindgen_f68ee0d177862e72
foreign import ccall unsafe "hs_bindgen_c0a4fd9b015deb20"
hs_bindgen_c0a4fd9b015deb20_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c0a4fd9b015deb20
:: PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c0a4fd9b015deb20 :: PtrConst CChar -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
hs_bindgen_c0a4fd9b015deb20 =
\PtrConst CChar
x0 ->
\Ptr SDL_AsyncIOQueue
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_c0a4fd9b015deb20_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (Ptr SDL_AsyncIOQueue -> FFIType (Ptr SDL_AsyncIOQueue)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_AsyncIOQueue
x1) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x2))
sDL_LoadFileAsync
:: PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL_AsyncIOQueue
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_LoadFileAsync :: PtrConst CChar -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
sDL_LoadFileAsync = PtrConst CChar -> Ptr SDL_AsyncIOQueue -> Ptr Void -> IO CBool
hs_bindgen_c0a4fd9b015deb20