Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Advice
- newtype DLException = DLException String
- newtype DLHandle = DLHandle {}
- type SearchPath = [FilePath]
- dlInit :: IO ()
- dlExit :: IO ()
- dlOpen :: Maybe String -> IO DLHandle
- dlOpenExt :: Maybe String -> IO DLHandle
- dlOpenAdvise :: [Advice] -> Maybe String -> IO DLHandle
- dlClose :: DLHandle -> IO ()
- dlSym :: DLHandle -> String -> IO (FunPtr a)
- dlSetSearchPath :: SearchPath -> IO ()
- dlGetSearchPath :: IO SearchPath
- dlForEachFile :: Maybe SearchPath -> (String -> IO Int) -> IO Int
- dlMakeResident :: DLHandle -> IO ()
- dlIsResident :: DLHandle -> IO Bool
Documentation
newtype DLException Source #
CUDA extensible exception
type SearchPath = [FilePath] Source #
Initialize libltdl. This function must be called before using libltdl and may be called several times.
Shut down libltdl and close all modules.This function will only then shut
down libltdl when it was called as many times as dlInit
has been
successfully called.
dlOpen :: Maybe String -> IO DLHandle Source #
Open the module with the specified file name and return a handle for it.
dlOpenExt :: Maybe String -> IO DLHandle Source #
Open the module with the specified file name and return a handle to it. This variant trid appending various extensions to teh file name in an effort to find the module.
dlClose :: DLHandle -> IO () Source #
Decrement the reference count on the module h
. If it drops to zero and no
other module depends on this module, then the module is unloaded.
dlSym :: DLHandle -> String -> IO (FunPtr a) Source #
Return the address of the symbol name
in the module h
.
dlSetSearchPath :: SearchPath -> IO () Source #
Replace the current user-defined library search path with path
, which
must be a list of absolute directories separated by lT_PATHSEP_CHAR
.
dlGetSearchPath :: IO SearchPath Source #
Return the current user-defined library search path.
dlForEachFile :: Maybe SearchPath -> (String -> IO Int) -> IO Int Source #
Iterate over the directory list in path
, calling f
for each module,
until f
returns a non-zero result, or until there are no more modules. The
value returned by the last call to f
is returned.
dlMakeResident :: DLHandle -> IO () Source #
Mark a module so that it cannot be closed.