7 DLLManager::DLLManager( const char *fname )
9 // Try to open the library now and get any error message.
11 h=dlopen( fname, RTLD_NOW );
15 DLLManager::~DLLManager()
17 // close the library if it isn't null
23 bool DLLManager::GetSymbol(
28 // try extract a symbol from the library
29 // get any error message is there is any
33 *v = dlsym( h, sym_name );
48 DLLFactoryBase::DLLFactoryBase(
53 // try get the factory function if there is no error yet
59 GetSymbol( (void **)&factory_func, factory ? factory : "init_module" );
65 DLLFactoryBase::~DLLFactoryBase()