Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Foreign.LibFFI.Base
Description
This module defines the basic libffi machinery. You will need this to create support for new ffi types.
Documentation
customPointerArg :: (a -> IO (Ptr b)) -> (Ptr b -> IO ()) -> a -> Arg #
mkStorableArg :: Storable a => Ptr CType -> a -> Arg #
withRetType :: (a -> IO b) -> RetType a -> RetType b #
mkStorableRetType :: Storable a => Ptr CType -> RetType a #
newStorableStructArgRet :: Storable a => [Ptr CType] -> IO (a -> Arg, RetType a, IO ()) #
newStructCType :: [Ptr CType] -> IO (Ptr CType, IO ()) #
sizeAndAlignmentOfCType :: Ptr CType -> IO (Int, Int) #