libltdl-0.1.1: FFI interface to libltdl

Safe HaskellNone
LanguageHaskell98

Foreign.LibLTDL

Synopsis

Documentation

dlInit :: IO () Source #

Initialize libltdl. This function must be called before using libltdl and may be called several times.

dlExit :: IO () Source #

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.

dlIsResident :: DLHandle -> IO Bool Source #

Check whether a particular module has been marked as resident, return True if it has or False otherwise.