|
ltdl.h File Reference
#include <sys/types.h>
Include dependency graph for ltdl.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Classes |
struct | lt_dlsymlist |
struct | lt_dlinfo |
struct | lt_user_dlloader |
Defines |
#define | LTDL_H 1 |
#define | LT_EOS_CHAR '\0' |
#define | LT_BEGIN_C_DECLS |
#define | LT_END_C_DECLS |
#define | LT_PARAMS(protos) () |
#define | lt_ptr char* |
#define | LT_STMT_START do |
#define | LT_STMT_END while (0) |
#define | LT_CONC(s, t) s/**/t |
#define | LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) |
#define | LT_PATHSEP_CHAR ':' |
#define | LT_SCOPE extern |
#define | LTDL_SET_PRELOADED_SYMBOLS() |
#define | lt_dlerror_table |
#define | LT_ERROR(name, diagnostic) LT_CONC(LT_ERROR_, name), |
Typedefs |
typedef lt_dlhandle_struct * | lt_dlhandle |
typedef void | lt_dlmutex_lock () |
typedef void | lt_dlmutex_unlock () |
typedef void | lt_dlmutex_seterror () |
typedef const char * | lt_dlmutex_geterror () |
typedef unsigned | lt_dlcaller_id |
typedef lt_dlloader | lt_dlloader |
typedef char * | lt_user_data |
typedef char * | lt_module |
typedef lt_module | lt_module_open () |
typedef int | lt_module_close () |
typedef char * | lt_find_sym () |
typedef int | lt_dlloader_exit () |
Enumerations |
enum | {
name,
UNKNOWN,
DLOPEN_NOT_SUPPORTED,
INVALID_LOADER,
INIT_LOADER,
REMOVE_LOADER,
FILE_NOT_FOUND,
DEPLIB_NOT_FOUND,
NO_SYMBOLS,
CANNOT_OPEN,
CANNOT_CLOSE,
SYMBOL_NOT_FOUND,
NO_MEMORY,
INVALID_HANDLE,
BUFFER_OVERFLOW,
INVALID_ERRORCODE,
SHUTDOWN,
CLOSE_RESIDENT_MODULE,
INVALID_MUTEX_ARGS,
INVALID_POSITION,
LT_ERROR_MAX
} |
Functions |
int | lt_dlinit () |
int | lt_dlexit () |
int | lt_dladdsearchdir () |
int | lt_dlinsertsearchdir () |
int | lt_dlsetsearchpath () |
const char * | lt_dlgetsearchpath () |
int | lt_dlforeachfile () |
lt_dlhandle | lt_dlopen () |
lt_dlhandle | lt_dlopenext () |
char * | lt_dlsym () |
const char * | lt_dlerror () |
int | lt_dlclose () |
int | lt_dlmakeresident () |
int | lt_dlisresident () |
int | lt_dlmutex_register () |
int | lt_dlpreload () |
int | lt_dlpreload_default () |
const lt_dlinfo * | lt_dlgetinfo () |
lt_dlhandle | lt_dlhandle_next () |
int | lt_dlforeach () |
lt_dlcaller_id | lt_dlcaller_register () |
char * | lt_dlcaller_set_data () |
char * | lt_dlcaller_get_data () |
lt_dlloader * | lt_dlloader_next () |
lt_dlloader * | lt_dlloader_find () |
const char * | lt_dlloader_name () |
lt_user_data * | lt_dlloader_data () |
int | lt_dlloader_add () |
int | lt_dlloader_remove () |
int | lt_dladderror () |
int | lt_dlseterror () |
Variables |
char *(* | lt_dlmalloc )() |
char *(* | lt_dlrealloc )() |
void(* | lt_dlfree )() |
Define Documentation
#define LT_CONC |
( |
s, |
|
|
t |
|
) |
s/**/t |
|
|
Value: LT_ERROR(UNKNOWN, "unknown error") \
LT_ERROR(DLOPEN_NOT_SUPPORTED, "dlopen support not available") \
LT_ERROR(INVALID_LOADER, "invalid loader") \
LT_ERROR(INIT_LOADER, "loader initialization failed") \
LT_ERROR(REMOVE_LOADER, "loader removal failed") \
LT_ERROR(FILE_NOT_FOUND, "file not found") \
LT_ERROR(DEPLIB_NOT_FOUND, "dependency library not found") \
LT_ERROR(NO_SYMBOLS, "no symbols defined") \
LT_ERROR(CANNOT_OPEN, "can't open the module") \
LT_ERROR(CANNOT_CLOSE, "can't close the module") \
LT_ERROR(SYMBOL_NOT_FOUND, "symbol not found") \
LT_ERROR(NO_MEMORY, "not enough memory") \
LT_ERROR(INVALID_HANDLE, "invalid module handle") \
LT_ERROR(BUFFER_OVERFLOW, "internal buffer overflow") \
LT_ERROR(INVALID_ERRORCODE, "invalid errorcode") \
LT_ERROR(SHUTDOWN, "library already shutdown") \
LT_ERROR(CLOSE_RESIDENT_MODULE, "can't close resident module") \
LT_ERROR(INVALID_MUTEX_ARGS, "invalid mutex handler registration") \
LT_ERROR(INVALID_POSITION, "invalid search path insert position")
Definition at line 313 of file ltdl.h. |
|
Definition at line 38 of file ltdl.h.
Referenced by canonicalize_path(), find_file_callback(), lt_argz_insertdir(), lt_dlopenext(), rpl_argz_create_sep(), rpl_argz_insert(), rpl_argz_next(), rpl_argz_stringify(), rpl_strchr(), rpl_strrchr(), trim(), and try_dlopen(). |
#define LT_ERROR |
( |
name, |
|
|
diagnostic |
|
) |
LT_CONC(LT_ERROR_, name), |
|
#define LT_PARAMS |
( |
protos |
|
) |
() |
|
#define LT_PATHSEP_CHAR ':' |
|
|
- Examples:
-
tests/mybackend.cc.
Definition at line 62 of file ltdl.h.
Referenced by ltmm::backend< ThreadPolicy >::find_sym(), ltmm::handle< ThreadPolicy >::find_symbol(), foreachfile_callback(), ltmm::loader< ThreadPolicy >::load(), lt_dlcaller_get_data(), lt_dlcaller_set_data(), lt_dlsym(), lt_emalloc(), lt_erealloc(), ltmm::symbol::symbol(), and ltmm::loader< ThreadPolicy >::unload(). |
#define LT_STMT_END while (0) |
|
#define LT_STRLEN |
( |
s |
|
) |
(((s) && (s)[0]) ? strlen (s) : 0) |
|
|
Definition at line 89 of file ltdl.h.
Referenced by canonicalize_path(), foreach_dirinpath(), list_files_by_dir(), load_deplibs(), lt_argz_insertdir(), lt_dlinsertsearchdir(), lt_dlopenext(), lt_dlsetsearchpath(), lt_dlsym(), lt_estrdup(), rpl_argz_create_sep(), rpl_argz_insert(), trim(), try_dlopen(), and tryall_dlopen_module(). |
#define LTDL_SET_PRELOADED_SYMBOLS |
( |
|
) |
|
|
|
Value:
Definition at line 230 of file ltdl.h. |
Typedef Documentation
Enumeration Type Documentation
|
- Enumerator:
-
name |
|
UNKNOWN |
|
DLOPEN_NOT_SUPPORTED |
|
INVALID_LOADER |
|
INIT_LOADER |
|
REMOVE_LOADER |
|
FILE_NOT_FOUND |
|
DEPLIB_NOT_FOUND |
|
NO_SYMBOLS |
|
CANNOT_OPEN |
|
CANNOT_CLOSE |
|
SYMBOL_NOT_FOUND |
|
NO_MEMORY |
|
INVALID_HANDLE |
|
BUFFER_OVERFLOW |
|
INVALID_ERRORCODE |
|
SHUTDOWN |
|
CLOSE_RESIDENT_MODULE |
|
INVALID_MUTEX_ARGS |
|
INVALID_POSITION |
|
LT_ERROR_MAX |
|
Definition at line 335 of file ltdl.h. |
Function Documentation
int lt_dladdsearchdir |
( |
|
) |
|
|
char* lt_dlcaller_get_data |
( |
|
) |
|
|
char* lt_dlcaller_set_data |
( |
|
) |
|
|
const char* lt_dlerror |
( |
|
) |
|
|
|
Definition at line 2268 of file ltdl.c.
References lt_dlloader::dlloader_data, lt_dlloader::dlloader_exit, lt_dlclose(), LT_DLIS_RESIDENT, LT_DLMEM_REASSIGN, LT_DLMUTEX_LOCK, LT_DLMUTEX_SETERROR, LT_DLMUTEX_UNLOCK, LT_DLSTRERROR, lt_dlloader::next, lt_dlhandle_struct::next, and SHUTDOWN.
Referenced by ltmm::loader< ThreadPolicy >::~loader().
Here is the call graph for this function:
|
const char* lt_dlgetsearchpath |
( |
|
) |
|
|
int lt_dlinsertsearchdir |
( |
|
) |
|
|
const char* lt_dlloader_name |
( |
|
) |
|
|
int lt_dlloader_remove |
( |
|
) |
|
|
int lt_dlmakeresident |
( |
|
) |
|
|
int lt_dlmutex_register |
( |
|
) |
|
|
int lt_dlpreload_default |
( |
|
) |
|
|
int lt_dlsetsearchpath |
( |
|
) |
|
|
Variable Documentation
Top of page
Last update Mon Jun 27 13:25:10 2005
Christian Holm
Created by DoxyGen 1.4.3-20050530
|