Safe Haskell | None |
---|---|
Language | Haskell98 |
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 Source #
mkStorableArg :: Storable a => Ptr CType -> a -> Arg Source #
withRetType :: (a -> IO b) -> RetType a -> RetType b Source #
mkStorableRetType :: Storable a => Ptr CType -> RetType a Source #
newStructCType :: [Ptr CType] -> IO (Ptr CType, IO ()) Source #