{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Hints.Unsafe (
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_SetHintWithPriority,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_SetHint,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_ResetHint,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_ResetHints,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_GetHint,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_GetHintBoolean,
SDL3.Sys.Bindgen.Hints.Unsafe.sDL_AddHintCallback,
SDL3.Sys.Bindgen.Hints.Unsafe.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>"
, "_Bool hs_bindgen_cb82b52002f46100 ("
, " char const *arg1,"
, " char const *arg2,"
, " SDL_HintPriority arg3"
, ")"
, "{"
, " return (SDL_SetHintWithPriority)(arg1, arg2, arg3);"
, "}"
, "_Bool hs_bindgen_3f922ee38b008540 ("
, " char const *arg1,"
, " char const *arg2"
, ")"
, "{"
, " return (SDL_SetHint)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_3d1b9b2531cc28fe ("
, " char const *arg1"
, ")"
, "{"
, " return (SDL_ResetHint)(arg1);"
, "}"
, "void hs_bindgen_55d0a8bf7baacba4 (void)"
, "{"
, " (SDL_ResetHints)();"
, "}"
, "char const *hs_bindgen_637ba7b5c2a54073 ("
, " char const *arg1"
, ")"
, "{"
, " return (SDL_GetHint)(arg1);"
, "}"
, "_Bool hs_bindgen_df016d033ceb7b47 ("
, " char const *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return (SDL_GetHintBoolean)(arg1, arg2);"
, "}"
, "_Bool hs_bindgen_5d061e74b3f3440a ("
, " char const *arg1,"
, " SDL_HintCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " return (SDL_AddHintCallback)(arg1, arg2, arg3);"
, "}"
, "void hs_bindgen_7b0a9c503e7af491 ("
, " char const *arg1,"
, " SDL_HintCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " (SDL_RemoveHintCallback)(arg1, arg2, arg3);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_cb82b52002f46100"
hs_bindgen_cb82b52002f46100_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CUInt
-> IO BG.CBool
hs_bindgen_cb82b52002f46100
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL_HintPriority
-> IO BG.CBool
hs_bindgen_cb82b52002f46100 :: PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool
hs_bindgen_cb82b52002f46100 =
\PtrConst CChar
x0 ->
\PtrConst CChar
x1 ->
\SDL_HintPriority
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 -> CUInt -> IO CBool
hs_bindgen_cb82b52002f46100_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_HintPriority -> FFIType SDL_HintPriority
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_HintPriority
x2))
sDL_SetHintWithPriority
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> SDL_HintPriority
-> IO BG.CBool
sDL_SetHintWithPriority :: PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool
sDL_SetHintWithPriority = PtrConst CChar -> PtrConst CChar -> SDL_HintPriority -> IO CBool
hs_bindgen_cb82b52002f46100
foreign import ccall unsafe "hs_bindgen_3f922ee38b008540"
hs_bindgen_3f922ee38b008540_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_3f922ee38b008540
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_3f922ee38b008540 :: PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_3f922ee38b008540 =
\PtrConst CChar
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_3f922ee38b008540_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_SetHint
:: PtrConst.PtrConst BG.CChar
-> PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_SetHint :: PtrConst CChar -> PtrConst CChar -> IO CBool
sDL_SetHint = PtrConst CChar -> PtrConst CChar -> IO CBool
hs_bindgen_3f922ee38b008540
foreign import ccall unsafe "hs_bindgen_3d1b9b2531cc28fe"
hs_bindgen_3d1b9b2531cc28fe_base
:: BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_3d1b9b2531cc28fe
:: PtrConst.PtrConst BG.CChar
-> IO BG.CBool
hs_bindgen_3d1b9b2531cc28fe :: PtrConst CChar -> IO CBool
hs_bindgen_3d1b9b2531cc28fe =
\PtrConst CChar
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_3d1b9b2531cc28fe_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0))
sDL_ResetHint
:: PtrConst.PtrConst BG.CChar
-> IO BG.CBool
sDL_ResetHint :: PtrConst CChar -> IO CBool
sDL_ResetHint = PtrConst CChar -> IO CBool
hs_bindgen_3d1b9b2531cc28fe
foreign import ccall unsafe "hs_bindgen_55d0a8bf7baacba4"
hs_bindgen_55d0a8bf7baacba4_base
:: IO ()
hs_bindgen_55d0a8bf7baacba4 :: IO ()
hs_bindgen_55d0a8bf7baacba4 :: IO ()
hs_bindgen_55d0a8bf7baacba4 =
IO ()
hs_bindgen_55d0a8bf7baacba4_base
sDL_ResetHints :: IO ()
sDL_ResetHints :: IO ()
sDL_ResetHints = IO ()
hs_bindgen_55d0a8bf7baacba4
foreign import ccall unsafe "hs_bindgen_637ba7b5c2a54073"
hs_bindgen_637ba7b5c2a54073_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_637ba7b5c2a54073
:: PtrConst.PtrConst BG.CChar
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_637ba7b5c2a54073 :: PtrConst CChar -> IO (PtrConst CChar)
hs_bindgen_637ba7b5c2a54073 =
\PtrConst CChar
x0 ->
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> 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 Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO (Ptr Void)
hs_bindgen_637ba7b5c2a54073_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0))
sDL_GetHint
:: PtrConst.PtrConst BG.CChar
-> IO (PtrConst.PtrConst BG.CChar)
sDL_GetHint :: PtrConst CChar -> IO (PtrConst CChar)
sDL_GetHint = PtrConst CChar -> IO (PtrConst CChar)
hs_bindgen_637ba7b5c2a54073
foreign import ccall unsafe "hs_bindgen_df016d033ceb7b47"
hs_bindgen_df016d033ceb7b47_base
:: BG.Ptr BG.Void
-> BG.CBool
-> IO BG.CBool
hs_bindgen_df016d033ceb7b47
:: PtrConst.PtrConst BG.CChar
-> BG.CBool
-> IO BG.CBool
hs_bindgen_df016d033ceb7b47 :: PtrConst CChar -> CBool -> IO CBool
hs_bindgen_df016d033ceb7b47 =
\PtrConst CChar
x0 ->
\CBool
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 -> CBool -> IO CBool
hs_bindgen_df016d033ceb7b47_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (CBool -> FFIType CBool
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CBool
x1))
sDL_GetHintBoolean
:: PtrConst.PtrConst BG.CChar
-> BG.CBool
-> IO BG.CBool
sDL_GetHintBoolean :: PtrConst CChar -> CBool -> IO CBool
sDL_GetHintBoolean = PtrConst CChar -> CBool -> IO CBool
hs_bindgen_df016d033ceb7b47
foreign import ccall unsafe "hs_bindgen_5d061e74b3f3440a"
hs_bindgen_5d061e74b3f3440a_base
:: BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_5d061e74b3f3440a
:: PtrConst.PtrConst BG.CChar
-> SDL_HintCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_5d061e74b3f3440a :: PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool
hs_bindgen_5d061e74b3f3440a =
\PtrConst CChar
x0 ->
\SDL_HintCallback
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 -> FunPtr Void -> Ptr Void -> IO CBool
hs_bindgen_5d061e74b3f3440a_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (SDL_HintCallback -> FFIType SDL_HintCallback
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_HintCallback
x1) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x2))
sDL_AddHintCallback
:: PtrConst.PtrConst BG.CChar
-> SDL_HintCallback
-> BG.Ptr BG.Void
-> IO BG.CBool
sDL_AddHintCallback :: PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool
sDL_AddHintCallback = PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO CBool
hs_bindgen_5d061e74b3f3440a
foreign import ccall unsafe "hs_bindgen_7b0a9c503e7af491"
hs_bindgen_7b0a9c503e7af491_base
:: BG.Ptr BG.Void
-> BG.FunPtr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_7b0a9c503e7af491
:: PtrConst.PtrConst BG.CChar
-> SDL_HintCallback
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_7b0a9c503e7af491 :: PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()
hs_bindgen_7b0a9c503e7af491 =
\PtrConst CChar
x0 ->
\SDL_HintCallback
x1 ->
\Ptr Void
x2 ->
Ptr Void -> FunPtr Void -> Ptr Void -> IO ()
hs_bindgen_7b0a9c503e7af491_base (PtrConst CChar -> FFIType (PtrConst CChar)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst CChar
x0) (SDL_HintCallback -> FFIType SDL_HintCallback
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_HintCallback
x1) (Ptr Void -> FFIType (Ptr Void)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Void
x2)
sDL_RemoveHintCallback
:: PtrConst.PtrConst BG.CChar
-> SDL_HintCallback
-> BG.Ptr BG.Void
-> IO ()
sDL_RemoveHintCallback :: PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()
sDL_RemoveHintCallback = PtrConst CChar -> SDL_HintCallback -> Ptr Void -> IO ()
hs_bindgen_7b0a9c503e7af491