Asterisk Ver0-1-0/Loader DotC
AsteriskVer0-1-0/LoaderDotC ¶struct module { int (*load_module)(void); int (*unload_module)(void); int (*usecount)(void); char *(*description)(void); void *lib; char resource[256]; struct module *next; }; static struct module *module_list=NULL; * int ast_load_resource(char *resource_name)
dlopen loads a dynamic library from the file named by the null terminated string filename and returns an opaque "handle" for the dynamic library. dlsym takes a "handle" of a dynamic library returned by dlopen and the null terminated symbol name, returning the address where that symbol is loaded. If the symbol is not found, dlsym returns NULL dlclose decrements the reference count on the dynamic library handle handle. If the reference count drops to zero and no other loaded libraries use symbols in it, then the dynamic library is unloaded.
|
Do not clog intellect's sluices with bits of knowledge of questionable uses. |