{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Storage.Unsafe (
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_OpenTitleStorage,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_OpenUserStorage,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_OpenFileStorage,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_OpenStorage,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_CloseStorage,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_StorageReady,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_GetStorageFileSize,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_ReadStorageFile,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_WriteStorageFile,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_CreateStorageDirectory,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_EnumerateStorageDirectory,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_RemoveStoragePath,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_RenameStoragePath,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_CopyStorageFile,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_GetStoragePathInfo,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_GetStorageSpaceRemaining,
SDL3.Sys.Bindgen.Storage.Unsafe.sDL_GlobStorageDirectory,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Filesystem qualified
import SDL3.Sys.Bindgen.Properties qualified
import SDL3.Sys.Bindgen.Stdinc qualified
import SDL3.Sys.Bindgen.Storage
$( 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_storage.h>"
, "SDL_Storage *hs_bindgen_3efb7b0f89cc88bf ("
, " char const *arg1,"
, " SDL_PropertiesID arg2"
, ")"
, "{"
, " return (SDL_OpenTitleStorage)(arg1, arg2);"
, "}"
, "SDL_Storage *hs_bindgen_091f6a568e98e088 ("
, " char const *arg1,"
, " char const *arg2,"
, " SDL_PropertiesID arg3"
, ")"
, "{"
, " return (SDL_OpenUserStorage)(arg1, arg2, arg3);"
, "}"
, "SDL_Storage *hs_bindgen_7005113c31f7da2f ("
, " char const *arg1"
, ")"
, "{"
, " return (SDL_OpenFileStorage)(arg1);"
, "}"
, "SDL_Storage *hs_bindgen_b8dda6b007805de7 ("
, " SDL_StorageInterface const *arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_OpenStorage)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_cbfe2f0e9b4cbc36 ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_CloseStorage)(arg1);"
, "}"
, "_Bool hs_bindgen_2696a9ea9d0fe58b ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_StorageReady)(arg1);"
, "}"
, "_Bool hs_bindgen_4355da006df8358e ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " Uint64 *arg3"
, ")"
, "{"
, " return (SDL_GetStorageFileSize)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_9bef126210db7928 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " void *arg3,"
, " Uint64 arg4"
, ")"
, "{"
, " return (SDL_ReadStorageFile)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_b7b6d20d57e278de ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " void const *arg3,"
, " Uint64 arg4"
, ")"
, "{"
, " return (SDL_WriteStorageFile)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_ca002acf3667a014 ("
, " SDL_Storage *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_CreateStorageDirectory)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_26712abeb8ac186f ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " SDL_EnumerateDirectoryCallback arg3,"
, " void *arg4"
, ")"
, "{"
, " return (SDL_EnumerateStorageDirectory)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_76b7043c8ce038fa ("
, " SDL_Storage *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_RemoveStoragePath)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_27e9f0759ca9fa2b ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (SDL_RenameStoragePath)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_d46668712d52c888 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (SDL_CopyStorageFile)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_a307c310a8b1e035 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " SDL_PathInfo *arg3"
, ")"
, "{"
, " return (SDL_GetStoragePathInfo)(arg1, arg2, arg3);"
, "}"
, "Uint64 hs_bindgen_0980e8da26f68acf ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_GetStorageSpaceRemaining)(arg1);"
, "}"
, "char **hs_bindgen_c0ca5ffb0ed420ff ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " char const *arg3,"
, " SDL_GlobFlags arg4,"
, " signed int *arg5"
, ")"
, "{"
, " return (SDL_GlobStorageDirectory)(arg1, arg2, arg3, arg4, arg5);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_3efb7b0f89cc88bf"
hs_bindgen_3efb7b0f89cc88bf_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_3efb7b0f89cc88bf
:: PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_3efb7b0f89cc88bf :: PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_3efb7b0f89cc88bf =
\PtrConst CChar
x0 ->
\SDL_PropertiesID
x1 ->
(Ptr Void -> Ptr SDL_Storage)
-> IO (Ptr Void) -> IO (Ptr SDL_Storage)
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_Storage
FFIType (Ptr SDL_Storage) -> Ptr SDL_Storage
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Word32 -> IO (Ptr Void)
hs_bindgen_3efb7b0f89cc88bf_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (SDL_PropertiesID -> FFIType SDL_PropertiesID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_PropertiesID
x1))
sDL_OpenTitleStorage
:: PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
sDL_OpenTitleStorage :: PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
sDL_OpenTitleStorage = PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_3efb7b0f89cc88bf
foreign import ccall unsafe "hs_bindgen_091f6a568e98e088"
hs_bindgen_091f6a568e98e088_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_091f6a568e98e088
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_091f6a568e98e088 :: PtrConst CChar
-> PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_091f6a568e98e088 =
\PtrConst CChar
x0 ->
\PtrConst CChar
x1 ->
\SDL_PropertiesID
x2 ->
(Ptr Void -> Ptr SDL_Storage)
-> IO (Ptr Void) -> IO (Ptr SDL_Storage)
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_Storage
FFIType (Ptr SDL_Storage) -> Ptr SDL_Storage
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
(Ptr Void -> Ptr Void -> Word32 -> IO (Ptr Void)
hs_bindgen_091f6a568e98e088_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_PropertiesID -> FFIType SDL_PropertiesID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_PropertiesID
x2))
sDL_OpenUserStorage
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
sDL_OpenUserStorage :: PtrConst CChar
-> PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
sDL_OpenUserStorage = PtrConst CChar
-> PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_091f6a568e98e088
foreign import ccall unsafe "hs_bindgen_7005113c31f7da2f"
hs_bindgen_7005113c31f7da2f_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_7005113c31f7da2f
:: PtrConst.PtrConst BG.CChar
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_7005113c31f7da2f :: PtrConst CChar -> IO (Ptr SDL_Storage)
hs_bindgen_7005113c31f7da2f =
\PtrConst CChar
x0 ->
(Ptr Void -> Ptr SDL_Storage)
-> IO (Ptr Void) -> IO (Ptr SDL_Storage)
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_Storage
FFIType (Ptr SDL_Storage) -> Ptr SDL_Storage
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO (Ptr Void)
hs_bindgen_7005113c31f7da2f_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0))
sDL_OpenFileStorage
:: PtrConst.PtrConst BG.CChar
-> IO (BG.Ptr SDL_Storage)
sDL_OpenFileStorage :: PtrConst CChar -> IO (Ptr SDL_Storage)
sDL_OpenFileStorage = PtrConst CChar -> IO (Ptr SDL_Storage)
hs_bindgen_7005113c31f7da2f
foreign import ccall unsafe "hs_bindgen_b8dda6b007805de7"
hs_bindgen_b8dda6b007805de7_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_b8dda6b007805de7
:: PtrConst.PtrConst SDL_StorageInterface
-> BG.Ptr BG.Void
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_b8dda6b007805de7 :: PtrConst SDL_StorageInterface -> Ptr Void -> IO (Ptr SDL_Storage)
hs_bindgen_b8dda6b007805de7 =
\PtrConst SDL_StorageInterface
x0 ->
\Ptr Void
x1 ->
(Ptr Void -> Ptr SDL_Storage)
-> IO (Ptr Void) -> IO (Ptr SDL_Storage)
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_Storage
FFIType (Ptr SDL_Storage) -> Ptr SDL_Storage
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO (Ptr Void)
hs_bindgen_b8dda6b007805de7_base (PtrConst SDL_StorageInterface
-> FFIType (PtrConst SDL_StorageInterface)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_StorageInterface
x0) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x1))
sDL_OpenStorage
:: PtrConst.PtrConst SDL_StorageInterface
-> BG.Ptr BG.Void
-> IO (BG.Ptr SDL_Storage)
sDL_OpenStorage :: PtrConst SDL_StorageInterface -> Ptr Void -> IO (Ptr SDL_Storage)
sDL_OpenStorage = PtrConst SDL_StorageInterface -> Ptr Void -> IO (Ptr SDL_Storage)
hs_bindgen_b8dda6b007805de7
foreign import ccall unsafe "hs_bindgen_cbfe2f0e9b4cbc36"
hs_bindgen_cbfe2f0e9b4cbc36_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_cbfe2f0e9b4cbc36
:: BG.Ptr SDL_Storage
-> IO BG.CBool
hs_bindgen_cbfe2f0e9b4cbc36 :: Ptr SDL_Storage -> IO CBool
hs_bindgen_cbfe2f0e9b4cbc36 =
\Ptr SDL_Storage
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_cbfe2f0e9b4cbc36_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0))
sDL_CloseStorage
:: BG.Ptr SDL_Storage
-> IO BG.CBool
sDL_CloseStorage :: Ptr SDL_Storage -> IO CBool
sDL_CloseStorage = Ptr SDL_Storage -> IO CBool
hs_bindgen_cbfe2f0e9b4cbc36
foreign import ccall unsafe "hs_bindgen_2696a9ea9d0fe58b"
hs_bindgen_2696a9ea9d0fe58b_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_2696a9ea9d0fe58b
:: BG.Ptr SDL_Storage
-> IO BG.CBool
hs_bindgen_2696a9ea9d0fe58b :: Ptr SDL_Storage -> IO CBool
hs_bindgen_2696a9ea9d0fe58b =
\Ptr SDL_Storage
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_2696a9ea9d0fe58b_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0))
sDL_StorageReady
:: BG.Ptr SDL_Storage
-> IO BG.CBool
sDL_StorageReady :: Ptr SDL_Storage -> IO CBool
sDL_StorageReady = Ptr SDL_Storage -> IO CBool
hs_bindgen_2696a9ea9d0fe58b
foreign import ccall unsafe "hs_bindgen_4355da006df8358e"
hs_bindgen_4355da006df8358e_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_4355da006df8358e
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_4355da006df8358e :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Uint64 -> IO CBool
hs_bindgen_4355da006df8358e =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\Ptr Uint64
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_4355da006df8358e_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1) (Ptr Uint64 -> FFIType (Ptr Uint64)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint64
x2))
sDL_GetStorageFileSize
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
sDL_GetStorageFileSize :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Uint64 -> IO CBool
sDL_GetStorageFileSize = Ptr SDL_Storage -> PtrConst CChar -> Ptr Uint64 -> IO CBool
hs_bindgen_4355da006df8358e
foreign import ccall unsafe "hs_bindgen_9bef126210db7928"
hs_bindgen_9bef126210db7928_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
hs_bindgen_9bef126210db7928
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_9bef126210db7928 :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Void -> Uint64 -> IO CBool
hs_bindgen_9bef126210db7928 =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\Ptr Void
x2 ->
\Uint64
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 -> Ptr Void -> Ptr Void -> Word64 -> IO CBool
hs_bindgen_9bef126210db7928_base
(Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0)
(PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x2)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x3)
)
sDL_ReadStorageFile
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
sDL_ReadStorageFile :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Void -> Uint64 -> IO CBool
sDL_ReadStorageFile = Ptr SDL_Storage -> PtrConst CChar -> Ptr Void -> Uint64 -> IO CBool
hs_bindgen_9bef126210db7928
foreign import ccall unsafe "hs_bindgen_b7b6d20d57e278de"
hs_bindgen_b7b6d20d57e278de_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
hs_bindgen_b7b6d20d57e278de
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_b7b6d20d57e278de :: Ptr SDL_Storage
-> PtrConst CChar -> PtrConst Void -> Uint64 -> IO CBool
hs_bindgen_b7b6d20d57e278de =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\PtrConst Void
x2 ->
\Uint64
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 -> Ptr Void -> Ptr Void -> Word64 -> IO CBool
hs_bindgen_b7b6d20d57e278de_base
(Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0)
(PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1)
(PtrConst Void -> FFIType (PtrConst Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst Void
x2)
(Uint64 -> FFIType Uint64
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint64
x3)
)
sDL_WriteStorageFile
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
sDL_WriteStorageFile :: Ptr SDL_Storage
-> PtrConst CChar -> PtrConst Void -> Uint64 -> IO CBool
sDL_WriteStorageFile = Ptr SDL_Storage
-> PtrConst CChar -> PtrConst Void -> Uint64 -> IO CBool
hs_bindgen_b7b6d20d57e278de
foreign import ccall unsafe "hs_bindgen_ca002acf3667a014"
hs_bindgen_ca002acf3667a014_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_ca002acf3667a014
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_ca002acf3667a014 :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_ca002acf3667a014 =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
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_ca002acf3667a014_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1))
sDL_CreateStorageDirectory
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_CreateStorageDirectory :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
sDL_CreateStorageDirectory =
Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_ca002acf3667a014
foreign import ccall unsafe "hs_bindgen_26712abeb8ac186f"
hs_bindgen_26712abeb8ac186f_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.Support.FunPtrVoid
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_26712abeb8ac186f
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Filesystem.SDL_EnumerateDirectoryCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_26712abeb8ac186f :: Ptr SDL_Storage
-> PtrConst CChar
-> SDL_EnumerateDirectoryCallback
-> Ptr Void
-> IO CBool
hs_bindgen_26712abeb8ac186f =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\SDL_EnumerateDirectoryCallback
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 -> Ptr Void -> FunPtrVoid -> Ptr Void -> IO CBool
hs_bindgen_26712abeb8ac186f_base
(Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0)
(PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1)
(SDL_EnumerateDirectoryCallback
-> FFIType SDL_EnumerateDirectoryCallback
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_EnumerateDirectoryCallback
x2)
(Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x3)
)
sDL_EnumerateStorageDirectory
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Filesystem.SDL_EnumerateDirectoryCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_EnumerateStorageDirectory :: Ptr SDL_Storage
-> PtrConst CChar
-> SDL_EnumerateDirectoryCallback
-> Ptr Void
-> IO CBool
sDL_EnumerateStorageDirectory =
Ptr SDL_Storage
-> PtrConst CChar
-> SDL_EnumerateDirectoryCallback
-> Ptr Void
-> IO CBool
hs_bindgen_26712abeb8ac186f
foreign import ccall unsafe "hs_bindgen_76b7043c8ce038fa"
hs_bindgen_76b7043c8ce038fa_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_76b7043c8ce038fa
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_76b7043c8ce038fa :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_76b7043c8ce038fa =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
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_76b7043c8ce038fa_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1))
sDL_RemoveStoragePath
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_RemoveStoragePath :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
sDL_RemoveStoragePath = Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_76b7043c8ce038fa
foreign import ccall unsafe "hs_bindgen_27e9f0759ca9fa2b"
hs_bindgen_27e9f0759ca9fa2b_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_27e9f0759ca9fa2b
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_27e9f0759ca9fa2b :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_27e9f0759ca9fa2b =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\PtrConst CChar
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_27e9f0759ca9fa2b_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x2))
sDL_RenameStoragePath
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_RenameStoragePath :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
sDL_RenameStoragePath = Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_27e9f0759ca9fa2b
foreign import ccall unsafe "hs_bindgen_d46668712d52c888"
hs_bindgen_d46668712d52c888_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_d46668712d52c888
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_d46668712d52c888 :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_d46668712d52c888 =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\PtrConst CChar
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_d46668712d52c888_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x2))
sDL_CopyStorageFile
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_CopyStorageFile :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
sDL_CopyStorageFile = Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_d46668712d52c888
foreign import ccall unsafe "hs_bindgen_a307c310a8b1e035"
hs_bindgen_a307c310a8b1e035_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_a307c310a8b1e035
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Filesystem.SDL_PathInfo
-> IO BG.CBool
hs_bindgen_a307c310a8b1e035 :: Ptr SDL_Storage -> PtrConst CChar -> Ptr SDL_PathInfo -> IO CBool
hs_bindgen_a307c310a8b1e035 =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\Ptr SDL_PathInfo
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_a307c310a8b1e035_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0) (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1) (Ptr SDL_PathInfo -> FFIType (Ptr SDL_PathInfo)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_PathInfo
x2))
sDL_GetStoragePathInfo
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Filesystem.SDL_PathInfo
-> IO BG.CBool
sDL_GetStoragePathInfo :: Ptr SDL_Storage -> PtrConst CChar -> Ptr SDL_PathInfo -> IO CBool
sDL_GetStoragePathInfo = Ptr SDL_Storage -> PtrConst CChar -> Ptr SDL_PathInfo -> IO CBool
hs_bindgen_a307c310a8b1e035
foreign import ccall unsafe "hs_bindgen_0980e8da26f68acf"
hs_bindgen_0980e8da26f68acf_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
hs_bindgen_0980e8da26f68acf
:: BG.Ptr SDL_Storage
-> IO SDL3.Sys.Bindgen.Stdinc.Uint64
hs_bindgen_0980e8da26f68acf :: Ptr SDL_Storage -> IO Uint64
hs_bindgen_0980e8da26f68acf =
\Ptr SDL_Storage
x0 ->
(Word64 -> Uint64) -> IO Word64 -> IO Uint64
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word64 -> Uint64
FFIType Uint64 -> Uint64
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO Word64
hs_bindgen_0980e8da26f68acf_base (Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0))
sDL_GetStorageSpaceRemaining
:: BG.Ptr SDL_Storage
-> IO SDL3.Sys.Bindgen.Stdinc.Uint64
sDL_GetStorageSpaceRemaining :: Ptr SDL_Storage -> IO Uint64
sDL_GetStorageSpaceRemaining =
Ptr SDL_Storage -> IO Uint64
hs_bindgen_0980e8da26f68acf
foreign import ccall unsafe "hs_bindgen_c0ca5ffb0ed420ff"
hs_bindgen_c0ca5ffb0ed420ff_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_c0ca5ffb0ed420ff
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Filesystem.SDL_GlobFlags
-> BG.Ptr BG.CInt
-> IO (BG.Ptr (BG.Ptr BG.CChar))
hs_bindgen_c0ca5ffb0ed420ff :: Ptr SDL_Storage
-> PtrConst CChar
-> PtrConst CChar
-> SDL_GlobFlags
-> Ptr CInt
-> IO (Ptr (Ptr CChar))
hs_bindgen_c0ca5ffb0ed420ff =
\Ptr SDL_Storage
x0 ->
\PtrConst CChar
x1 ->
\PtrConst CChar
x2 ->
\SDL_GlobFlags
x3 ->
\Ptr CInt
x4 ->
(Ptr Void -> Ptr (Ptr CChar))
-> IO (Ptr Void) -> IO (Ptr (Ptr CChar))
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 (Ptr CChar)
FFIType (Ptr (Ptr CChar)) -> Ptr (Ptr CChar)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void
-> Ptr Void -> Ptr Void -> Word32 -> Ptr Void -> IO (Ptr Void)
hs_bindgen_c0ca5ffb0ed420ff_base
(Ptr SDL_Storage -> FFIType (Ptr SDL_Storage)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Storage
x0)
(PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x1)
(PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x2)
(SDL_GlobFlags -> FFIType SDL_GlobFlags
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_GlobFlags
x3)
(Ptr CInt -> FFIType (Ptr CInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CInt
x4)
)
sDL_GlobStorageDirectory
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Filesystem.SDL_GlobFlags
-> BG.Ptr BG.CInt
-> IO (BG.Ptr (BG.Ptr BG.CChar))
sDL_GlobStorageDirectory :: Ptr SDL_Storage
-> PtrConst CChar
-> PtrConst CChar
-> SDL_GlobFlags
-> Ptr CInt
-> IO (Ptr (Ptr CChar))
sDL_GlobStorageDirectory =
Ptr SDL_Storage
-> PtrConst CChar
-> PtrConst CChar
-> SDL_GlobFlags
-> Ptr CInt
-> IO (Ptr (Ptr CChar))
hs_bindgen_c0ca5ffb0ed420ff