{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Hints.FunPtr (
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_SetHintWithPriority,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_SetHint,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_ResetHint,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_ResetHints,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_GetHint,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_GetHintBoolean,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_AddHintCallback,
SDL3.Sys.Bindgen.Hints.FunPtr.sDL_RemoveHintCallback,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Hints
$( 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_hints.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_SetHintWithPriority */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_a1124b908df29b8d (void)) ("
, " char const *arg1,"
, " char const *arg2,"
, " SDL_HintPriority arg3"
, ")"
, "{"
, " return &SDL_SetHintWithPriority;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_SetHint */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_67e0f6aa5619e9be (void)) ("
, " char const *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return &SDL_SetHint;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_ResetHint */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_978a3ef046005881 (void)) ("
, " char const *arg1"
, ")"
, "{"
, " return &SDL_ResetHint;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_ResetHints */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_55759cca20a8fc7a (void)) (void)"
, "{"
, " return &SDL_ResetHints;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_GetHint */"
, "__attribute__ ((const))"
, "char const *(*hs_bindgen_76a1a86d4bb7fe80 (void)) ("
, " char const *arg1"
, ")"
, "{"
, " return &SDL_GetHint;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_GetHintBoolean */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_31d7e0760df235bb (void)) ("
, " char const *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return &SDL_GetHintBoolean;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_AddHintCallback */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_e8ea72aae64e3056 (void)) ("
, " char const *arg1,"
, " SDL_HintCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " return &SDL_AddHintCallback;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Hints_get_SDL_RemoveHintCallback */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_266d8b3206b888d9 (void)) ("
, " char const *arg1,"
, " SDL_HintCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " return &SDL_RemoveHintCallback;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_a1124b908df29b8d"
hs_bindgen_a1124b908df29b8d_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_a1124b908df29b8d
:: IO
( BG.FunPtr
(PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> SDL_HintPriority -> IO BG.CBool)
)
hs_bindgen_a1124b908df29b8d :: IO
(FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
hs_bindgen_a1124b908df29b8d =
(FunPtr Void
-> FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool)
FFIType
(FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
-> FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_a1124b908df29b8d_base
{-# NOINLINE sDL_SetHintWithPriority #-}
sDL_SetHintWithPriority
:: BG.FunPtr
(PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> SDL_HintPriority -> IO BG.CBool)
sDL_SetHintWithPriority :: FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool)
sDL_SetHintWithPriority =
IO
(FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
-> FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool))
hs_bindgen_a1124b908df29b8d
foreign import ccall unsafe "hs_bindgen_67e0f6aa5619e9be"
hs_bindgen_67e0f6aa5619e9be_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_67e0f6aa5619e9be
:: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO BG.CBool))
hs_bindgen_67e0f6aa5619e9be :: IO (FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
hs_bindgen_67e0f6aa5619e9be =
(FunPtr Void
-> FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool)
FFIType (FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
-> FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_67e0f6aa5619e9be_base
{-# NOINLINE sDL_SetHint #-}
sDL_SetHint :: BG.FunPtr (PtrConst.PtrConst BG.CChar -> PtrConst.PtrConst BG.CChar -> IO BG.CBool)
sDL_SetHint :: FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool)
sDL_SetHint =
IO (FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
-> FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (PtrConst CChar -> PtrConst CChar -> IO CBool))
hs_bindgen_67e0f6aa5619e9be
foreign import ccall unsafe "hs_bindgen_978a3ef046005881"
hs_bindgen_978a3ef046005881_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_978a3ef046005881 :: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> IO BG.CBool))
hs_bindgen_978a3ef046005881 :: IO (FunPtr (PtrConst CChar -> IO CBool))
hs_bindgen_978a3ef046005881 =
(FunPtr Void -> FunPtr (PtrConst CChar -> IO CBool))
-> IO (FunPtr Void) -> IO (FunPtr (PtrConst CChar -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (PtrConst CChar -> IO CBool)
FFIType (FunPtr (PtrConst CChar -> IO CBool))
-> FunPtr (PtrConst CChar -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_978a3ef046005881_base
{-# NOINLINE sDL_ResetHint #-}
sDL_ResetHint :: BG.FunPtr (PtrConst.PtrConst BG.CChar -> IO BG.CBool)
sDL_ResetHint :: FunPtr (PtrConst CChar -> IO CBool)
sDL_ResetHint =
IO (FunPtr (PtrConst CChar -> IO CBool))
-> FunPtr (PtrConst CChar -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (PtrConst CChar -> IO CBool))
hs_bindgen_978a3ef046005881
foreign import ccall unsafe "hs_bindgen_55759cca20a8fc7a"
hs_bindgen_55759cca20a8fc7a_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_55759cca20a8fc7a :: IO (BG.FunPtr (IO ()))
hs_bindgen_55759cca20a8fc7a :: IO (FunPtr (IO ()))
hs_bindgen_55759cca20a8fc7a =
(FunPtr Void -> FunPtr (IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (IO ()))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (IO ())
FFIType (FunPtr (IO ())) -> FunPtr (IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_55759cca20a8fc7a_base
{-# NOINLINE sDL_ResetHints #-}
sDL_ResetHints :: BG.FunPtr (IO ())
sDL_ResetHints :: FunPtr (IO ())
sDL_ResetHints =
IO (FunPtr (IO ())) -> FunPtr (IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO ()))
hs_bindgen_55759cca20a8fc7a
foreign import ccall unsafe "hs_bindgen_76a1a86d4bb7fe80"
hs_bindgen_76a1a86d4bb7fe80_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_76a1a86d4bb7fe80
:: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.CChar)))
hs_bindgen_76a1a86d4bb7fe80 :: IO (FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
hs_bindgen_76a1a86d4bb7fe80 =
(FunPtr Void -> FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
-> IO (FunPtr Void)
-> IO (FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void -> FunPtr (PtrConst CChar -> IO (PtrConst CChar))
FFIType (FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
-> FunPtr (PtrConst CChar -> IO (PtrConst CChar))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_76a1a86d4bb7fe80_base
{-# NOINLINE sDL_GetHint #-}
sDL_GetHint :: BG.FunPtr (PtrConst.PtrConst BG.CChar -> IO (PtrConst.PtrConst BG.CChar))
sDL_GetHint :: FunPtr (PtrConst CChar -> IO (PtrConst CChar))
sDL_GetHint =
IO (FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
-> FunPtr (PtrConst CChar -> IO (PtrConst CChar))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (PtrConst CChar -> IO (PtrConst CChar)))
hs_bindgen_76a1a86d4bb7fe80
foreign import ccall unsafe "hs_bindgen_31d7e0760df235bb"
hs_bindgen_31d7e0760df235bb_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_31d7e0760df235bb
:: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> BG.CBool -> IO BG.CBool))
hs_bindgen_31d7e0760df235bb :: IO (FunPtr (PtrConst CChar -> CBool -> IO CBool))
hs_bindgen_31d7e0760df235bb =
(FunPtr Void -> FunPtr (PtrConst CChar -> CBool -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (PtrConst CChar -> 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 FunPtr Void -> FunPtr (PtrConst CChar -> CBool -> IO CBool)
FFIType (FunPtr (PtrConst CChar -> CBool -> IO CBool))
-> FunPtr (PtrConst CChar -> CBool -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_31d7e0760df235bb_base
{-# NOINLINE sDL_GetHintBoolean #-}
sDL_GetHintBoolean :: BG.FunPtr (PtrConst.PtrConst BG.CChar -> BG.CBool -> IO BG.CBool)
sDL_GetHintBoolean :: FunPtr (PtrConst CChar -> CBool -> IO CBool)
sDL_GetHintBoolean =
IO (FunPtr (PtrConst CChar -> CBool -> IO CBool))
-> FunPtr (PtrConst CChar -> CBool -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (PtrConst CChar -> CBool -> IO CBool))
hs_bindgen_31d7e0760df235bb
foreign import ccall unsafe "hs_bindgen_e8ea72aae64e3056"
hs_bindgen_e8ea72aae64e3056_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_e8ea72aae64e3056
:: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> SDL_HintCallback -> BG.Ptr BG.Void -> IO BG.CBool))
hs_bindgen_e8ea72aae64e3056 :: IO
(FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
hs_bindgen_e8ea72aae64e3056 =
(FunPtr Void
-> FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
-> IO (FunPtr Void)
-> IO
(FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool)
FFIType
(FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
-> FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_e8ea72aae64e3056_base
{-# NOINLINE sDL_AddHintCallback #-}
sDL_AddHintCallback
:: BG.FunPtr (PtrConst.PtrConst BG.CChar -> SDL_HintCallback -> BG.Ptr BG.Void -> IO BG.CBool)
sDL_AddHintCallback :: FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool)
sDL_AddHintCallback =
IO
(FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
-> FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool))
hs_bindgen_e8ea72aae64e3056
foreign import ccall unsafe "hs_bindgen_266d8b3206b888d9"
hs_bindgen_266d8b3206b888d9_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_266d8b3206b888d9
:: IO (BG.FunPtr (PtrConst.PtrConst BG.CChar -> SDL_HintCallback -> BG.Ptr BG.Void -> IO ()))
hs_bindgen_266d8b3206b888d9 :: IO
(FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
hs_bindgen_266d8b3206b888d9 =
(FunPtr Void
-> FunPtr
(PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
-> IO (FunPtr Void)
-> IO
(FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap FunPtr Void
-> FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ())
FFIType
(FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
-> FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_266d8b3206b888d9_base
{-# NOINLINE sDL_RemoveHintCallback #-}
sDL_RemoveHintCallback
:: BG.FunPtr (PtrConst.PtrConst BG.CChar -> SDL_HintCallback -> BG.Ptr BG.Void -> IO ())
sDL_RemoveHintCallback :: FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ())
sDL_RemoveHintCallback =
IO
(FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
-> FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr (PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()))
hs_bindgen_266d8b3206b888d9