Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

ltdl.h File Reference

#include <sys/types.h>

Go to the source code of this file.

Compounds

struct  lt_dlinfo
struct  lt_dlsymlist
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 LT_PARAMS ((void))
typedef unsigned lt_dlcaller_id
typedef lt_dlloader lt_dlloader
typedef lt_ptr lt_user_data
typedef lt_ptr lt_module

Enumerations

enum  { name, LT_ERROR_MAX }

Functions

int lt_dlinit LT_PARAMS ((void))
int lt_dladdsearchdir LT_PARAMS ((const char *search_dir))
int lt_dlinsertsearchdir LT_PARAMS ((const char *before, const char *search_dir))
int lt_dlsetsearchpath LT_PARAMS ((const char *search_path))
int lt_dlforeachfile LT_PARAMS ((const char *search_path, int(*func)(const char *filename, lt_ptr data), lt_ptr data))
lt_dlhandle lt_dlopen LT_PARAMS ((const char *filename))
lt_ptr lt_dlsym LT_PARAMS ((lt_dlhandle handle, const char *name))
int lt_dlclose LT_PARAMS ((lt_dlhandle handle))
int lt_dlmutex_register LT_PARAMS ((lt_dlmutex_lock *lock, lt_dlmutex_unlock *unlock, lt_dlmutex_seterror *seterror, lt_dlmutex_geterror *geterror))
LT_SCOPE lt_ptr lt_dlmalloc LT_PARAMS ((size_t size))
LT_SCOPE lt_ptr lt_dlrealloc LT_PARAMS ((lt_ptr ptr, size_t size))
LT_SCOPE void lt_dlfree LT_PARAMS ((lt_ptr ptr))
int lt_dlpreload LT_PARAMS ((const lt_dlsymlist *preloaded))
lt_dlhandle lt_dlhandle_next LT_PARAMS ((lt_dlhandle place))
int lt_dlforeach LT_PARAMS ((int(*func)(lt_dlhandle handle, lt_ptr data), lt_ptr data))
lt_ptr lt_dlcaller_set_data LT_PARAMS ((lt_dlcaller_id key, lt_dlhandle handle, lt_ptr data))
lt_ptr lt_dlcaller_get_data LT_PARAMS ((lt_dlcaller_id key, lt_dlhandle handle))
lt_dlloader *lt_dlloader_next LT_PARAMS ((lt_dlloader *place))
lt_dlloader *lt_dlloader_find LT_PARAMS ((const char *loader_name))
int lt_dlloader_add LT_PARAMS ((lt_dlloader *place, const struct lt_user_dlloader *dlloader, const char *loader_name))
int lt_dladderror LT_PARAMS ((const char *diagnostic))
int lt_dlseterror LT_PARAMS ((int errorcode))


Define Documentation

#define LT_BEGIN_C_DECLS
 

Definition at line 47 of file ltdl.h.

#define LT_CONC s,
 )     s/**/t
 

Definition at line 85 of file ltdl.h.

#define lt_dlerror_table
 

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 308 of file ltdl.h.

#define LT_END_C_DECLS
 

Definition at line 48 of file ltdl.h.

#define LT_EOS_CHAR   '\0'
 

Definition at line 38 of file ltdl.h.

#define LT_ERROR name,
diagnostic   )     LT_CONC(LT_ERROR_, name),
 

#define LT_PARAMS protos   )     ()
 

Definition at line 61 of file ltdl.h.

#define LT_PATHSEP_CHAR   ':'
 

Definition at line 123 of file ltdl.h.

#define lt_ptr   char*
 

Definition at line 62 of file ltdl.h.

#define LT_SCOPE   extern
 

Definition at line 138 of file ltdl.h.

#define LT_STMT_END   while (0)
 

Definition at line 76 of file ltdl.h.

#define LT_STMT_START   do
 

Definition at line 75 of file ltdl.h.

#define LT_STRLEN  )     (((s) && (s)[0]) ? strlen (s) : 0)
 

Definition at line 89 of file ltdl.h.

#define LTDL_H   1
 

Definition at line 29 of file ltdl.h.

 
#define LTDL_SET_PRELOADED_SYMBOLS  ) 
 

Value:

LT_STMT_START{  \
  extern const lt_dlsymlist lt_preloaded_symbols[];   \
  lt_dlpreload_default(lt_preloaded_symbols);     \
            }LT_STMT_END

Definition at line 225 of file ltdl.h.


Typedef Documentation

typedef unsigned lt_dlcaller_id
 

Definition at line 251 of file ltdl.h.

typedef struct lt_dlhandle_struct* lt_dlhandle
 

Definition at line 148 of file ltdl.h.

typedef struct lt_dlloader lt_dlloader
 

Definition at line 265 of file ltdl.h.

typedef lt_ptr lt_module
 

Definition at line 267 of file ltdl.h.

int lt_dlloader_remove LT_PARAMS
 

Definition at line 183 of file ltdl.h.

typedef lt_ptr lt_user_data
 

Definition at line 266 of file ltdl.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
name 
LT_ERROR_MAX 

Definition at line 330 of file ltdl.h.


Function Documentation

int lt_dlseterror LT_PARAMS (int errorcode)   ) 
 

int lt_dladderror LT_PARAMS (const char *diagnostic)   ) 
 

int lt_dlloader_add LT_PARAMS (lt_dlloader *place, const struct lt_user_dlloader *dlloader, const char *loader_name)   ) 
 

lt_dlloader* lt_dlloader_find LT_PARAMS (const char *loader_name)   ) 
 

lt_dlloader* lt_dlloader_next LT_PARAMS (lt_dlloader *place)   ) 
 

lt_ptr lt_dlcaller_get_data LT_PARAMS (lt_dlcaller_id key, lt_dlhandle handle)   ) 
 

lt_ptr lt_dlcaller_set_data LT_PARAMS (lt_dlcaller_id key, lt_dlhandle handle, lt_ptr data)   ) 
 

int lt_dlforeach LT_PARAMS (int(*func  )(lt_dlhandle handle, lt_ptr data), lt_ptr data)  ) 
 

lt_dlhandle lt_dlhandle_next LT_PARAMS (lt_dlhandle place)   ) 
 

int lt_dlpreload LT_PARAMS (const lt_dlsymlist *preloaded)   ) 
 

LT_SCOPE void lt_dlfree LT_PARAMS (lt_ptr ptr)   ) 
 

LT_SCOPE lt_ptr lt_dlrealloc LT_PARAMS (lt_ptr ptr, size_t size)   ) 
 

LT_SCOPE lt_ptr lt_dlmalloc LT_PARAMS (size_t size)   ) 
 

int lt_dlmutex_register LT_PARAMS (lt_dlmutex_lock *lock, lt_dlmutex_unlock *unlock, lt_dlmutex_seterror *seterror, lt_dlmutex_geterror *geterror)   ) 
 

int lt_dlclose LT_PARAMS (lt_dlhandle handle)   ) 
 

lt_ptr lt_dlsym LT_PARAMS (lt_dlhandle handle, const char *name)   ) 
 

lt_dlhandle lt_dlopen LT_PARAMS (const char *filename  ) 
 

int lt_dlforeachfile LT_PARAMS (const char *search_path, int(*func  )(const char *filename, lt_ptr data), lt_ptr data)  ) 
 

int lt_dlsetsearchpath LT_PARAMS (const char *search_path)   ) 
 

int lt_dlinsertsearchdir LT_PARAMS (const char *before, const char *search_dir)   ) 
 

int lt_dladdsearchdir LT_PARAMS (const char *search_dir)   ) 
 

int lt_dlinit LT_PARAMS (void)   ) 
 


Generated on Fri Mar 18 11:33:16 2005 for OpenVL by doxygen 1.3.3