{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Storage.Safe (
SDL3.Sys.Bindgen.Storage.Safe.sDL_OpenTitleStorage,
SDL3.Sys.Bindgen.Storage.Safe.sDL_OpenUserStorage,
SDL3.Sys.Bindgen.Storage.Safe.sDL_OpenFileStorage,
SDL3.Sys.Bindgen.Storage.Safe.sDL_OpenStorage,
SDL3.Sys.Bindgen.Storage.Safe.sDL_CloseStorage,
SDL3.Sys.Bindgen.Storage.Safe.sDL_StorageReady,
SDL3.Sys.Bindgen.Storage.Safe.sDL_GetStorageFileSize,
SDL3.Sys.Bindgen.Storage.Safe.sDL_ReadStorageFile,
SDL3.Sys.Bindgen.Storage.Safe.sDL_WriteStorageFile,
SDL3.Sys.Bindgen.Storage.Safe.sDL_CreateStorageDirectory,
SDL3.Sys.Bindgen.Storage.Safe.sDL_EnumerateStorageDirectory,
SDL3.Sys.Bindgen.Storage.Safe.sDL_RemoveStoragePath,
SDL3.Sys.Bindgen.Storage.Safe.sDL_RenameStoragePath,
SDL3.Sys.Bindgen.Storage.Safe.sDL_CopyStorageFile,
SDL3.Sys.Bindgen.Storage.Safe.sDL_GetStoragePathInfo,
SDL3.Sys.Bindgen.Storage.Safe.sDL_GetStorageSpaceRemaining,
SDL3.Sys.Bindgen.Storage.Safe.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_a269c174e4d6d7b9 ("
, " char const *arg1,"
, " SDL_PropertiesID arg2"
, ")"
, "{"
, " return (SDL_OpenTitleStorage)(arg1, arg2);"
, "}"
, "SDL_Storage *hs_bindgen_c1288c49648e9aaa ("
, " char const *arg1,"
, " char const *arg2,"
, " SDL_PropertiesID arg3"
, ")"
, "{"
, " return (SDL_OpenUserStorage)(arg1, arg2, arg3);"
, "}"
, "SDL_Storage *hs_bindgen_4a5bc70f5a32561a ("
, " char const *arg1"
, ")"
, "{"
, " return (SDL_OpenFileStorage)(arg1);"
, "}"
, "SDL_Storage *hs_bindgen_f9cc35fa817572b3 ("
, " SDL_StorageInterface const *arg1,"
, " void *arg2"
, ")"
, "{"
, " return (SDL_OpenStorage)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_00aa433d2a04f831 ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_CloseStorage)(arg1);"
, "}"
, "_Bool hs_bindgen_edb4ca27af77b411 ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_StorageReady)(arg1);"
, "}"
, "_Bool hs_bindgen_4cb320b95514046a ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " Uint64 *arg3"
, ")"
, "{"
, " return (SDL_GetStorageFileSize)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_86cd3832a2a2afa1 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " void *arg3,"
, " Uint64 arg4"
, ")"
, "{"
, " return (SDL_ReadStorageFile)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_c2571a46edb50775 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " void const *arg3,"
, " Uint64 arg4"
, ")"
, "{"
, " return (SDL_WriteStorageFile)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_d5b607d7f6956e66 ("
, " SDL_Storage *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_CreateStorageDirectory)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_c3c153b007f4b8d7 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " SDL_EnumerateDirectoryCallback arg3,"
, " void *arg4"
, ")"
, "{"
, " return (SDL_EnumerateStorageDirectory)(arg1, arg2, arg3, arg4);"
, "}"
, "_Bool hs_bindgen_d92d44c2f8e020ee ("
, " SDL_Storage *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_RemoveStoragePath)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_66aee97b54c3dcb2 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (SDL_RenameStoragePath)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_d6c508aee11578ae ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " char const *arg3"
, ")"
, "{"
, " return (SDL_CopyStorageFile)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_cbcca6168ed4f658 ("
, " SDL_Storage *arg1,"
, " char const *arg2,"
, " SDL_PathInfo *arg3"
, ")"
, "{"
, " return (SDL_GetStoragePathInfo)(arg1, arg2, arg3);"
, "}"
, "Uint64 hs_bindgen_33e3e12dc496414b ("
, " SDL_Storage *arg1"
, ")"
, "{"
, " return (SDL_GetStorageSpaceRemaining)(arg1);"
, "}"
, "char **hs_bindgen_7ef73cac376ed868 ("
, " 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 safe "hs_bindgen_a269c174e4d6d7b9"
hs_bindgen_a269c174e4d6d7b9_base
:: BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_a269c174e4d6d7b9
:: PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_a269c174e4d6d7b9 :: PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_a269c174e4d6d7b9 =
\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_a269c174e4d6d7b9_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_a269c174e4d6d7b9
foreign import ccall safe "hs_bindgen_c1288c49648e9aaa"
hs_bindgen_c1288c49648e9aaa_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_c1288c49648e9aaa
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_c1288c49648e9aaa :: PtrConst CChar
-> PtrConst CChar -> SDL_PropertiesID -> IO (Ptr SDL_Storage)
hs_bindgen_c1288c49648e9aaa =
\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_c1288c49648e9aaa_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_c1288c49648e9aaa
foreign import ccall safe "hs_bindgen_4a5bc70f5a32561a"
hs_bindgen_4a5bc70f5a32561a_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_4a5bc70f5a32561a
:: PtrConst.PtrConst BG.CChar
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_4a5bc70f5a32561a :: PtrConst CChar -> IO (Ptr SDL_Storage)
hs_bindgen_4a5bc70f5a32561a =
\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_4a5bc70f5a32561a_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_4a5bc70f5a32561a
foreign import ccall safe "hs_bindgen_f9cc35fa817572b3"
hs_bindgen_f9cc35fa817572b3_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_f9cc35fa817572b3
:: PtrConst.PtrConst SDL_StorageInterface
-> BG.Ptr BG.Void
-> IO (BG.Ptr SDL_Storage)
hs_bindgen_f9cc35fa817572b3 :: PtrConst SDL_StorageInterface -> Ptr Void -> IO (Ptr SDL_Storage)
hs_bindgen_f9cc35fa817572b3 =
\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_f9cc35fa817572b3_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_f9cc35fa817572b3
foreign import ccall safe "hs_bindgen_00aa433d2a04f831"
hs_bindgen_00aa433d2a04f831_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_00aa433d2a04f831
:: BG.Ptr SDL_Storage
-> IO BG.CBool
hs_bindgen_00aa433d2a04f831 :: Ptr SDL_Storage -> IO CBool
hs_bindgen_00aa433d2a04f831 =
\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_00aa433d2a04f831_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_00aa433d2a04f831
foreign import ccall safe "hs_bindgen_edb4ca27af77b411"
hs_bindgen_edb4ca27af77b411_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_edb4ca27af77b411
:: BG.Ptr SDL_Storage
-> IO BG.CBool
hs_bindgen_edb4ca27af77b411 :: Ptr SDL_Storage -> IO CBool
hs_bindgen_edb4ca27af77b411 =
\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_edb4ca27af77b411_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_edb4ca27af77b411
foreign import ccall safe "hs_bindgen_4cb320b95514046a"
hs_bindgen_4cb320b95514046a_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_4cb320b95514046a
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_4cb320b95514046a :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Uint64 -> IO CBool
hs_bindgen_4cb320b95514046a =
\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_4cb320b95514046a_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_4cb320b95514046a
foreign import ccall safe "hs_bindgen_86cd3832a2a2afa1"
hs_bindgen_86cd3832a2a2afa1_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
hs_bindgen_86cd3832a2a2afa1
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_86cd3832a2a2afa1 :: Ptr SDL_Storage -> PtrConst CChar -> Ptr Void -> Uint64 -> IO CBool
hs_bindgen_86cd3832a2a2afa1 =
\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_86cd3832a2a2afa1_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_86cd3832a2a2afa1
foreign import ccall safe "hs_bindgen_c2571a46edb50775"
hs_bindgen_c2571a46edb50775_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word64
-> IO BG.CBool
hs_bindgen_c2571a46edb50775
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.Void
-> SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO BG.CBool
hs_bindgen_c2571a46edb50775 :: Ptr SDL_Storage
-> PtrConst CChar -> PtrConst Void -> Uint64 -> IO CBool
hs_bindgen_c2571a46edb50775 =
\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_c2571a46edb50775_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_c2571a46edb50775
foreign import ccall safe "hs_bindgen_d5b607d7f6956e66"
hs_bindgen_d5b607d7f6956e66_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_d5b607d7f6956e66
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_d5b607d7f6956e66 :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_d5b607d7f6956e66 =
\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_d5b607d7f6956e66_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_d5b607d7f6956e66
foreign import ccall safe "hs_bindgen_c3c153b007f4b8d7"
hs_bindgen_c3c153b007f4b8d7_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.Support.FunPtrVoid
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c3c153b007f4b8d7
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> SDL3.Sys.Bindgen.Filesystem.SDL_EnumerateDirectoryCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_c3c153b007f4b8d7 :: Ptr SDL_Storage
-> PtrConst CChar
-> SDL_EnumerateDirectoryCallback
-> Ptr Void
-> IO CBool
hs_bindgen_c3c153b007f4b8d7 =
\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_c3c153b007f4b8d7_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_c3c153b007f4b8d7
foreign import ccall safe "hs_bindgen_d92d44c2f8e020ee"
hs_bindgen_d92d44c2f8e020ee_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_d92d44c2f8e020ee
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_d92d44c2f8e020ee :: Ptr SDL_Storage -> PtrConst CChar -> IO CBool
hs_bindgen_d92d44c2f8e020ee =
\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_d92d44c2f8e020ee_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_d92d44c2f8e020ee
foreign import ccall safe "hs_bindgen_66aee97b54c3dcb2"
hs_bindgen_66aee97b54c3dcb2_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_66aee97b54c3dcb2
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_66aee97b54c3dcb2 :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_66aee97b54c3dcb2 =
\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_66aee97b54c3dcb2_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_66aee97b54c3dcb2
foreign import ccall safe "hs_bindgen_d6c508aee11578ae"
hs_bindgen_d6c508aee11578ae_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_d6c508aee11578ae
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_d6c508aee11578ae :: Ptr SDL_Storage -> PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_d6c508aee11578ae =
\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_d6c508aee11578ae_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_d6c508aee11578ae
foreign import ccall safe "hs_bindgen_cbcca6168ed4f658"
hs_bindgen_cbcca6168ed4f658_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_cbcca6168ed4f658
:: BG.Ptr SDL_Storage
-> PtrConst.PtrConst BG.CChar
-> BG.Ptr SDL3.Sys.Bindgen.Filesystem.SDL_PathInfo
-> IO BG.CBool
hs_bindgen_cbcca6168ed4f658 :: Ptr SDL_Storage -> PtrConst CChar -> Ptr SDL_PathInfo -> IO CBool
hs_bindgen_cbcca6168ed4f658 =
\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_cbcca6168ed4f658_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_cbcca6168ed4f658
foreign import ccall safe "hs_bindgen_33e3e12dc496414b"
hs_bindgen_33e3e12dc496414b_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word64
hs_bindgen_33e3e12dc496414b
:: BG.Ptr SDL_Storage
-> IO SDL3.Sys.Bindgen.Stdinc.Uint64
hs_bindgen_33e3e12dc496414b :: Ptr SDL_Storage -> IO Uint64
hs_bindgen_33e3e12dc496414b =
\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_33e3e12dc496414b_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_33e3e12dc496414b
foreign import ccall safe "hs_bindgen_7ef73cac376ed868"
hs_bindgen_7ef73cac376ed868_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_7ef73cac376ed868
:: 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_7ef73cac376ed868 :: Ptr SDL_Storage
-> PtrConst CChar
-> PtrConst CChar
-> SDL_GlobFlags
-> Ptr CInt
-> IO (Ptr (Ptr CChar))
hs_bindgen_7ef73cac376ed868 =
\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_7ef73cac376ed868_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_7ef73cac376ed868