{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Process.FunPtr (
SDL3.Sys.Bindgen.Process.FunPtr.sDL_CreateProcess,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_CreateProcessWithProperties,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_GetProcessProperties,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_ReadProcess,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_GetProcessInput,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_GetProcessOutput,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_KillProcess,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_WaitProcess,
SDL3.Sys.Bindgen.Process.FunPtr.sDL_DestroyProcess,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Iostream qualified
import SDL3.Sys.Bindgen.Process
import SDL3.Sys.Bindgen.Properties qualified
$( 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_process.h>"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_CreateProcess */"
, "__attribute__ ((const))"
, "SDL_Process *(*hs_bindgen_da17b0b856594376 (void)) ("
, " char const *const *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return &SDL_CreateProcess;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_CreateProcessWithProperties */"
, "__attribute__ ((const))"
, "SDL_Process *(*hs_bindgen_ca2af0d478f65779 (void)) ("
, " SDL_PropertiesID arg1"
, ")"
, "{"
, " return &SDL_CreateProcessWithProperties;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_GetProcessProperties */"
, "__attribute__ ((const))"
, "SDL_PropertiesID (*hs_bindgen_122575617d2f970a (void)) ("
, " SDL_Process *arg1"
, ")"
, "{"
, " return &SDL_GetProcessProperties;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_ReadProcess */"
, "__attribute__ ((const))"
, "void *(*hs_bindgen_366550f8901941a0 (void)) ("
, " SDL_Process *arg1,"
, " size_t *arg2,"
, " signed int *arg3"
, ")"
, "{"
, " return &SDL_ReadProcess;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_GetProcessInput */"
, "__attribute__ ((const))"
, "SDL_IOStream *(*hs_bindgen_6503613b26c58999 (void)) ("
, " SDL_Process *arg1"
, ")"
, "{"
, " return &SDL_GetProcessInput;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_GetProcessOutput */"
, "__attribute__ ((const))"
, "SDL_IOStream *(*hs_bindgen_d9e2688fce87583b (void)) ("
, " SDL_Process *arg1"
, ")"
, "{"
, " return &SDL_GetProcessOutput;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_KillProcess */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_66935b63f947a265 (void)) ("
, " SDL_Process *arg1,"
, " _Bool arg2"
, ")"
, "{"
, " return &SDL_KillProcess;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_WaitProcess */"
, "__attribute__ ((const))"
, "_Bool (*hs_bindgen_7ea62b336c3f5c4c (void)) ("
, " SDL_Process *arg1,"
, " _Bool arg2,"
, " signed int *arg3"
, ")"
, "{"
, " return &SDL_WaitProcess;"
, "}"
, "/* sdl3bindgensys_SDL3.Sys.Bindgen.Process_get_SDL_DestroyProcess */"
, "__attribute__ ((const))"
, "void (*hs_bindgen_c5cffc00b0da9028 (void)) ("
, " SDL_Process *arg1"
, ")"
, "{"
, " return &SDL_DestroyProcess;"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_da17b0b856594376"
hs_bindgen_da17b0b856594376_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_da17b0b856594376
:: IO
(BG.FunPtr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar) -> BG.CBool -> IO (BG.Ptr SDL_Process)))
hs_bindgen_da17b0b856594376 :: IO
(FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
hs_bindgen_da17b0b856594376 =
(FunPtr Void
-> FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
-> IO (FunPtr Void)
-> IO
(FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
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 (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process))
FFIType
(FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
-> FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_da17b0b856594376_base
{-# NOINLINE sDL_CreateProcess #-}
sDL_CreateProcess
:: BG.FunPtr (PtrConst.PtrConst (PtrConst.PtrConst BG.CChar) -> BG.CBool -> IO (BG.Ptr SDL_Process))
sDL_CreateProcess :: FunPtr (PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process))
sDL_CreateProcess =
IO
(FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
-> FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process))
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(PtrConst (PtrConst CChar) -> CBool -> IO (Ptr SDL_Process)))
hs_bindgen_da17b0b856594376
foreign import ccall unsafe "hs_bindgen_ca2af0d478f65779"
hs_bindgen_ca2af0d478f65779_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_ca2af0d478f65779
:: IO (BG.FunPtr (SDL3.Sys.Bindgen.Properties.SDL_PropertiesID -> IO (BG.Ptr SDL_Process)))
hs_bindgen_ca2af0d478f65779 :: IO (FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
hs_bindgen_ca2af0d478f65779 =
(FunPtr Void -> FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
-> IO (FunPtr Void)
-> IO (FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
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_PropertiesID -> IO (Ptr SDL_Process))
FFIType (FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
-> FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_ca2af0d478f65779_base
{-# NOINLINE sDL_CreateProcessWithProperties #-}
sDL_CreateProcessWithProperties
:: BG.FunPtr (SDL3.Sys.Bindgen.Properties.SDL_PropertiesID -> IO (BG.Ptr SDL_Process))
sDL_CreateProcessWithProperties :: FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process))
sDL_CreateProcessWithProperties =
IO (FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
-> FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (SDL_PropertiesID -> IO (Ptr SDL_Process)))
hs_bindgen_ca2af0d478f65779
foreign import ccall unsafe "hs_bindgen_122575617d2f970a"
hs_bindgen_122575617d2f970a_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_122575617d2f970a
:: IO (BG.FunPtr (BG.Ptr SDL_Process -> IO SDL3.Sys.Bindgen.Properties.SDL_PropertiesID))
hs_bindgen_122575617d2f970a :: IO (FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
hs_bindgen_122575617d2f970a =
(FunPtr Void -> FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
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 (Ptr SDL_Process -> IO SDL_PropertiesID)
FFIType (FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
-> FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_122575617d2f970a_base
{-# NOINLINE sDL_GetProcessProperties #-}
sDL_GetProcessProperties
:: BG.FunPtr (BG.Ptr SDL_Process -> IO SDL3.Sys.Bindgen.Properties.SDL_PropertiesID)
sDL_GetProcessProperties :: FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID)
sDL_GetProcessProperties =
IO (FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
-> FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> IO SDL_PropertiesID))
hs_bindgen_122575617d2f970a
foreign import ccall unsafe "hs_bindgen_366550f8901941a0"
hs_bindgen_366550f8901941a0_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_366550f8901941a0
:: IO
( BG.FunPtr
(BG.Ptr SDL_Process -> BG.Ptr HsBindgen.Runtime.LibC.CSize -> BG.Ptr BG.CInt -> IO (BG.Ptr BG.Void))
)
hs_bindgen_366550f8901941a0 :: IO
(FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
hs_bindgen_366550f8901941a0 =
(FunPtr Void
-> FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
-> IO (FunPtr Void)
-> IO
(FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
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
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void))
FFIType
(FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
-> FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_366550f8901941a0_base
{-# NOINLINE sDL_ReadProcess #-}
sDL_ReadProcess
:: BG.FunPtr
(BG.Ptr SDL_Process -> BG.Ptr HsBindgen.Runtime.LibC.CSize -> BG.Ptr BG.CInt -> IO (BG.Ptr BG.Void))
sDL_ReadProcess :: FunPtr (Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void))
sDL_ReadProcess =
IO
(FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
-> FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void))
forall a. IO a -> a
BG.unsafePerformIO IO
(FunPtr
(Ptr SDL_Process -> Ptr CSize -> Ptr CInt -> IO (Ptr Void)))
hs_bindgen_366550f8901941a0
foreign import ccall unsafe "hs_bindgen_6503613b26c58999"
hs_bindgen_6503613b26c58999_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_6503613b26c58999
:: IO (BG.FunPtr (BG.Ptr SDL_Process -> IO (BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream)))
hs_bindgen_6503613b26c58999 :: IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
hs_bindgen_6503613b26c58999 =
(FunPtr Void -> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
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 (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
FFIType (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_6503613b26c58999_base
{-# NOINLINE sDL_GetProcessInput #-}
sDL_GetProcessInput
:: BG.FunPtr (BG.Ptr SDL_Process -> IO (BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream))
sDL_GetProcessInput :: FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
sDL_GetProcessInput =
IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
hs_bindgen_6503613b26c58999
foreign import ccall unsafe "hs_bindgen_d9e2688fce87583b"
hs_bindgen_d9e2688fce87583b_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_d9e2688fce87583b
:: IO (BG.FunPtr (BG.Ptr SDL_Process -> IO (BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream)))
hs_bindgen_d9e2688fce87583b :: IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
hs_bindgen_d9e2688fce87583b =
(FunPtr Void -> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
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 (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
FFIType (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_d9e2688fce87583b_base
{-# NOINLINE sDL_GetProcessOutput #-}
sDL_GetProcessOutput
:: BG.FunPtr (BG.Ptr SDL_Process -> IO (BG.Ptr SDL3.Sys.Bindgen.Iostream.SDL_IOStream))
sDL_GetProcessOutput :: FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
sDL_GetProcessOutput =
IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
-> FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream))
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> IO (Ptr SDL_IOStream)))
hs_bindgen_d9e2688fce87583b
foreign import ccall unsafe "hs_bindgen_66935b63f947a265"
hs_bindgen_66935b63f947a265_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_66935b63f947a265 :: IO (BG.FunPtr (BG.Ptr SDL_Process -> BG.CBool -> IO BG.CBool))
hs_bindgen_66935b63f947a265 :: IO (FunPtr (Ptr SDL_Process -> CBool -> IO CBool))
hs_bindgen_66935b63f947a265 =
(FunPtr Void -> FunPtr (Ptr SDL_Process -> CBool -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Process -> 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 (Ptr SDL_Process -> CBool -> IO CBool)
FFIType (FunPtr (Ptr SDL_Process -> CBool -> IO CBool))
-> FunPtr (Ptr SDL_Process -> CBool -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_66935b63f947a265_base
{-# NOINLINE sDL_KillProcess #-}
sDL_KillProcess :: BG.FunPtr (BG.Ptr SDL_Process -> BG.CBool -> IO BG.CBool)
sDL_KillProcess :: FunPtr (Ptr SDL_Process -> CBool -> IO CBool)
sDL_KillProcess =
IO (FunPtr (Ptr SDL_Process -> CBool -> IO CBool))
-> FunPtr (Ptr SDL_Process -> CBool -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> CBool -> IO CBool))
hs_bindgen_66935b63f947a265
foreign import ccall unsafe "hs_bindgen_7ea62b336c3f5c4c"
hs_bindgen_7ea62b336c3f5c4c_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_7ea62b336c3f5c4c
:: IO (BG.FunPtr (BG.Ptr SDL_Process -> BG.CBool -> BG.Ptr BG.CInt -> IO BG.CBool))
hs_bindgen_7ea62b336c3f5c4c :: IO (FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool))
hs_bindgen_7ea62b336c3f5c4c =
(FunPtr Void
-> FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool))
-> IO (FunPtr Void)
-> IO (FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> 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 (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool)
FFIType (FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool))
-> FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_7ea62b336c3f5c4c_base
{-# NOINLINE sDL_WaitProcess #-}
sDL_WaitProcess :: BG.FunPtr (BG.Ptr SDL_Process -> BG.CBool -> BG.Ptr BG.CInt -> IO BG.CBool)
sDL_WaitProcess :: FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool)
sDL_WaitProcess =
IO (FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool))
-> FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool)
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> CBool -> Ptr CInt -> IO CBool))
hs_bindgen_7ea62b336c3f5c4c
foreign import ccall unsafe "hs_bindgen_c5cffc00b0da9028"
hs_bindgen_c5cffc00b0da9028_base
:: IO (BG.FunPtr BG.Void)
hs_bindgen_c5cffc00b0da9028 :: IO (BG.FunPtr (BG.Ptr SDL_Process -> IO ()))
hs_bindgen_c5cffc00b0da9028 :: IO (FunPtr (Ptr SDL_Process -> IO ()))
hs_bindgen_c5cffc00b0da9028 =
(FunPtr Void -> FunPtr (Ptr SDL_Process -> IO ()))
-> IO (FunPtr Void) -> IO (FunPtr (Ptr SDL_Process -> 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 (Ptr SDL_Process -> IO ())
FFIType (FunPtr (Ptr SDL_Process -> IO ()))
-> FunPtr (Ptr SDL_Process -> IO ())
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (FunPtr Void)
hs_bindgen_c5cffc00b0da9028_base
{-# NOINLINE sDL_DestroyProcess #-}
sDL_DestroyProcess :: BG.FunPtr (BG.Ptr SDL_Process -> IO ())
sDL_DestroyProcess :: FunPtr (Ptr SDL_Process -> IO ())
sDL_DestroyProcess =
IO (FunPtr (Ptr SDL_Process -> IO ()))
-> FunPtr (Ptr SDL_Process -> IO ())
forall a. IO a -> a
BG.unsafePerformIO IO (FunPtr (Ptr SDL_Process -> IO ()))
hs_bindgen_c5cffc00b0da9028