{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Timer.FunPtr (
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_GetTicks,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_GetTicksNS,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_GetPerformanceCounter,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_GetPerformanceFrequency,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_Delay,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_DelayNS,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_DelayPrecise,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_AddTimer,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_AddTimerNS,
SDL3.Sys.Bindgen.Timer.FunPtr.sDL_RemoveTimer,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Stdinc qualified
import SDL3.Sys.Bindgen.Timer
$( 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_timer.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_GetTicks */"
, "__attribute__ ((const))"
, "Uint64 (*hs_bindgen_b002c533def7d6e4 (void)) (void)"
, "{"
, " return &SDL_GetTicks;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_GetTicksNS */"
, "__attribute__ ((const))"
, "Uint64 (*hs_bindgen_b11474f76c0aba2f (void)) (void)"
, "{"
, " return &SDL_GetTicksNS;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_GetPerformanceCounter */"
, "__attribute__ ((const))"
, "Uint64 (*hs_bindgen_2b2a93de1b59846d (void)) (void)"
, "{"
, " return &SDL_GetPerformanceCounter;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_GetPerformanceFrequency */"
, "__attribute__ ((const))"
, "Uint64 (*hs_bindgen_4255230676734c7d (void)) (void)"
, "{"
, " return &SDL_GetPerformanceFrequency;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_Delay */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_84b99149e32b080f (void)) ("
, " Uint32 arg1"
, ")"
, "{"
, " return &SDL_Delay;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_DelayNS */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_1a329c57b5bdd945 (void)) ("
, " Uint64 arg1"
, ")"
, "{"
, " return &SDL_DelayNS;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_DelayPrecise */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_f88afdd785f29344 (void)) ("
, " Uint64 arg1"
, ")"
, "{"
, " return &SDL_DelayPrecise;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_AddTimer */"
, "__attribute__ ((const))"
, "SDL_TimerID (*hs_bindgen_fd3519e258872841 (void)) ("
, " Uint32 arg1,"
, " SDL_TimerCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " return &SDL_AddTimer;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_AddTimerNS */"
, "__attribute__ ((const))"
, "SDL_TimerID (*hs_bindgen_de4009388b75ebae (void)) ("
, " Uint64 arg1,"
, " SDL_NSTimerCallback arg2,"
, " void *arg3"
, ")"
, "{"
, " return &SDL_AddTimerNS;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Timer_get_SDL_RemoveTimer */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_837b4956d1a9314e (void)) ("
, " SDL_TimerID arg1"
, ")"
, "{"
, " return &SDL_RemoveTimer;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_b002c533def7d6e4"
hs_bindgen_b002c533def7d6e4_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_b002c533def7d6e4 :: IO (BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64))
hs_bindgen_b002c533def7d6e4 :: IO (FunPtr (IO Uint64))
hs_bindgen_b002c533def7d6e4 =
(FunPtr Void -> FunPtr (IO Uint64))
-> IO (FunPtr Void) -> IO (FunPtr (IO Uint64))
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 Uint64)
FFIType (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_b002c533def7d6e4_base
{-# NOINLINE sDL_GetTicks #-}
sDL_GetTicks :: BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64)
sDL_GetTicks :: FunPtr (IO Uint64)
sDL_GetTicks =
IO (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO Uint64))
hs_bindgen_b002c533def7d6e4
foreign import ccall unsafe "hs_bindgen_b11474f76c0aba2f"
hs_bindgen_b11474f76c0aba2f_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_b11474f76c0aba2f :: IO (BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64))
hs_bindgen_b11474f76c0aba2f :: IO (FunPtr (IO Uint64))
hs_bindgen_b11474f76c0aba2f =
(FunPtr Void -> FunPtr (IO Uint64))
-> IO (FunPtr Void) -> IO (FunPtr (IO Uint64))
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 Uint64)
FFIType (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_b11474f76c0aba2f_base
{-# NOINLINE sDL_GetTicksNS #-}
sDL_GetTicksNS :: BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64)
sDL_GetTicksNS :: FunPtr (IO Uint64)
sDL_GetTicksNS =
IO (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO Uint64))
hs_bindgen_b11474f76c0aba2f
foreign import ccall unsafe "hs_bindgen_2b2a93de1b59846d"
hs_bindgen_2b2a93de1b59846d_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_2b2a93de1b59846d :: IO (BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64))
hs_bindgen_2b2a93de1b59846d :: IO (FunPtr (IO Uint64))
hs_bindgen_2b2a93de1b59846d =
(FunPtr Void -> FunPtr (IO Uint64))
-> IO (FunPtr Void) -> IO (FunPtr (IO Uint64))
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 Uint64)
FFIType (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_2b2a93de1b59846d_base
{-# NOINLINE sDL_GetPerformanceCounter #-}
sDL_GetPerformanceCounter :: BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64)
sDL_GetPerformanceCounter :: FunPtr (IO Uint64)
sDL_GetPerformanceCounter =
IO (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO Uint64))
hs_bindgen_2b2a93de1b59846d
foreign import ccall unsafe "hs_bindgen_4255230676734c7d"
hs_bindgen_4255230676734c7d_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_4255230676734c7d :: IO (BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64))
hs_bindgen_4255230676734c7d :: IO (FunPtr (IO Uint64))
hs_bindgen_4255230676734c7d =
(FunPtr Void -> FunPtr (IO Uint64))
-> IO (FunPtr Void) -> IO (FunPtr (IO Uint64))
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 Uint64)
FFIType (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_4255230676734c7d_base
{-# NOINLINE sDL_GetPerformanceFrequency #-}
sDL_GetPerformanceFrequency :: BG.FunPtr (IO SDL3.Sys.Bindgen.Stdinc.Uint64)
sDL_GetPerformanceFrequency :: FunPtr (IO Uint64)
sDL_GetPerformanceFrequency =
IO (FunPtr (IO Uint64)) -> FunPtr (IO Uint64)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (IO Uint64))
hs_bindgen_4255230676734c7d
foreign import ccall unsafe "hs_bindgen_84b99149e32b080f"
hs_bindgen_84b99149e32b080f_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_84b99149e32b080f :: IO (BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint32 -> IO ()))
hs_bindgen_84b99149e32b080f :: IO (FunPtr (Uint32 -> IO ()))
hs_bindgen_84b99149e32b080f =
(FunPtr Void -> FunPtr (Uint32 -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Uint32 -> 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 (Uint32 -> IO ())
FFIType (FunPtr (Uint32 -> IO ())) -> FunPtr (Uint32 -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_84b99149e32b080f_base
{-# NOINLINE sDL_Delay #-}
sDL_Delay :: BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint32 -> IO ())
sDL_Delay :: FunPtr (Uint32 -> IO ())
sDL_Delay =
IO (FunPtr (Uint32 -> IO ())) -> FunPtr (Uint32 -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Uint32 -> IO ()))
hs_bindgen_84b99149e32b080f
foreign import ccall unsafe "hs_bindgen_1a329c57b5bdd945"
hs_bindgen_1a329c57b5bdd945_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_1a329c57b5bdd945 :: IO (BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint64 -> IO ()))
hs_bindgen_1a329c57b5bdd945 :: IO (FunPtr (Uint64 -> IO ()))
hs_bindgen_1a329c57b5bdd945 =
(FunPtr Void -> FunPtr (Uint64 -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Uint64 -> 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 (Uint64 -> IO ())
FFIType (FunPtr (Uint64 -> IO ())) -> FunPtr (Uint64 -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_1a329c57b5bdd945_base
{-# NOINLINE sDL_DelayNS #-}
sDL_DelayNS :: BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint64 -> IO ())
sDL_DelayNS :: FunPtr (Uint64 -> IO ())
sDL_DelayNS =
IO (FunPtr (Uint64 -> IO ())) -> FunPtr (Uint64 -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Uint64 -> IO ()))
hs_bindgen_1a329c57b5bdd945
foreign import ccall unsafe "hs_bindgen_f88afdd785f29344"
hs_bindgen_f88afdd785f29344_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_f88afdd785f29344 :: IO (BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint64 -> IO ()))
hs_bindgen_f88afdd785f29344 :: IO (FunPtr (Uint64 -> IO ()))
hs_bindgen_f88afdd785f29344 =
(FunPtr Void -> FunPtr (Uint64 -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Uint64 -> 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 (Uint64 -> IO ())
FFIType (FunPtr (Uint64 -> IO ())) -> FunPtr (Uint64 -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_f88afdd785f29344_base
{-# NOINLINE sDL_DelayPrecise #-}
sDL_DelayPrecise :: BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint64 -> IO ())
sDL_DelayPrecise :: FunPtr (Uint64 -> IO ())
sDL_DelayPrecise =
IO (FunPtr (Uint64 -> IO ())) -> FunPtr (Uint64 -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Uint64 -> IO ()))
hs_bindgen_f88afdd785f29344
foreign import ccall unsafe "hs_bindgen_fd3519e258872841"
hs_bindgen_fd3519e258872841_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_fd3519e258872841
:: IO
(BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint32 -> SDL_TimerCallback -> BG.Ptr BG.Void -> IO SDL_TimerID))
hs_bindgen_fd3519e258872841 :: IO
(FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
hs_bindgen_fd3519e258872841 =
(FunPtr Void
-> FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
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
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID)
FFIType
(FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
-> FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_fd3519e258872841_base
{-# NOINLINE sDL_AddTimer #-}
sDL_AddTimer
:: BG.FunPtr (SDL3.Sys.Bindgen.Stdinc.Uint32 -> SDL_TimerCallback -> BG.Ptr BG.Void -> IO SDL_TimerID)
sDL_AddTimer :: FunPtr (Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID)
sDL_AddTimer =
IO
(FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
-> FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Uint32 -> SDL_TimerCallback -> Ptr Void -> IO SDL_TimerID))
hs_bindgen_fd3519e258872841
foreign import ccall unsafe "hs_bindgen_de4009388b75ebae"
hs_bindgen_de4009388b75ebae_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_de4009388b75ebae
:: IO
( BG.FunPtr
(SDL3.Sys.Bindgen.Stdinc.Uint64 -> SDL_NSTimerCallback -> BG.Ptr BG.Void -> IO SDL_TimerID)
)
hs_bindgen_de4009388b75ebae :: IO
(FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
hs_bindgen_de4009388b75ebae =
(FunPtr Void
-> FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
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
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID)
FFIType
(FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
-> FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_de4009388b75ebae_base
{-# NOINLINE sDL_AddTimerNS #-}
sDL_AddTimerNS
:: BG.FunPtr
(SDL3.Sys.Bindgen.Stdinc.Uint64 -> SDL_NSTimerCallback -> BG.Ptr BG.Void -> IO SDL_TimerID)
sDL_AddTimerNS :: FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID)
sDL_AddTimerNS =
IO
(FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
-> FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID)
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Uint64 -> SDL_NSTimerCallback -> Ptr Void -> IO SDL_TimerID))
hs_bindgen_de4009388b75ebae
foreign import ccall unsafe "hs_bindgen_837b4956d1a9314e"
hs_bindgen_837b4956d1a9314e_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_837b4956d1a9314e :: IO (BG.FunPtr (SDL_TimerID -> IO BG.CBool))
hs_bindgen_837b4956d1a9314e :: IO (FunPtr (SDL_TimerID -> IO CBool))
hs_bindgen_837b4956d1a9314e =
(FunPtr Void -> FunPtr (SDL_TimerID -> IO CBool))
-> IO (FunPtr Void) -> IO (FunPtr (SDL_TimerID -> 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 (SDL_TimerID -> IO CBool)
FFIType (FunPtr (SDL_TimerID -> IO CBool))
-> FunPtr (SDL_TimerID -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_837b4956d1a9314e_base
{-# NOINLINE sDL_RemoveTimer #-}
sDL_RemoveTimer :: BG.FunPtr (SDL_TimerID -> IO BG.CBool)
sDL_RemoveTimer :: FunPtr (SDL_TimerID -> IO CBool)
sDL_RemoveTimer =
IO (FunPtr (SDL_TimerID -> IO CBool))
-> FunPtr (SDL_TimerID -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (SDL_TimerID -> IO CBool))
hs_bindgen_837b4956d1a9314e