|
|
b3258d |
#ifndef SLTDL_H
|
|
|
b3258d |
#define SLTDL_H
|
|
|
b3258d |
|
|
|
b3258d |
#include "sltdl_api.h"
|
|
|
b3258d |
|
|
|
b3258d |
#ifdef __cplusplus
|
|
|
b3258d |
extern "C" {
|
|
|
b3258d |
#endif
|
|
|
b3258d |
|
|
|
6a3903 |
/**********************************************************************/
|
|
|
6a3903 |
/* */
|
|
|
6a3903 |
/* this header povides projects that depend on ltdl's interfaces the */
|
|
|
6a3903 |
/* most necessary macro definitions, type definitions, and forward */
|
|
|
6a3903 |
/* declarations. */
|
|
|
6a3903 |
/* */
|
|
|
6a3903 |
/* if your library or utility does not yet use libltdl, then it is */
|
|
|
6a3903 |
/* strongly recommended that you use the various posix interfaces as */
|
|
|
6a3903 |
/* defined in <dlfcn.h>, and accordingly refrain from using libsltdl */
|
|
|
6a3903 |
/* altogether. */
|
|
|
6a3903 |
/* */
|
|
|
6a3903 |
/**********************************************************************/
|
|
|
6a3903 |
|
|
|
f70646 |
typedef struct lt_modctx * lt_dlhandle;
|
|
|
eeaed5 |
typedef struct lt_modctl * lt_dladvise;
|
|
|
f70646 |
|
|
|
564b3c |
/* global reference-counting */
|
|
|
564b3c |
lt_api int lt_dlinit(void);
|
|
|
564b3c |
lt_api int lt_dlexit(void);
|
|
|
564b3c |
|
|
|
47891e |
/* library search path */
|
|
|
bb0941 |
lt_api int lt_dlpathopen(const char *, const char **);
|
|
|
47891e |
lt_api int lt_dladdsearchdir(const char *);
|
|
|
47891e |
lt_api int lt_dlinsertsearchdir(const char *, const char *);
|
|
|
47891e |
lt_api int lt_dlsetsearchpath(const char *);
|
|
|
47891e |
lt_api const char * lt_dlgetsearchpath(void);
|
|
|
47891e |
|
|
|
303f79 |
/* module interfaces */
|
|
|
303f79 |
lt_api lt_dlhandle lt_dlopen(const char *);
|
|
|
303f79 |
lt_api lt_dlhandle lt_dlopenext(const char *);
|
|
|
2af0aa |
lt_api lt_dlhandle lt_dlopenadvise(const char *, struct lt_modctl *);
|
|
|
303f79 |
|
|
|
64a26c |
lt_api void * lt_dlsym(lt_dlhandle, const char *);
|
|
|
64a26c |
lt_api int lt_dlclose(lt_dlhandle);
|
|
|
64a26c |
|
|
|
b3258d |
#ifdef __cplusplus
|
|
|
b3258d |
}
|
|
|
b3258d |
#endif
|
|
|
b3258d |
|
|
|
b3258d |
#endif
|