1 #include "daq/slc/system/DynamicLoader.h"
2 #include "daq/slc/system/DynamicLoadException.h"
8 DynamicLoader::~DynamicLoader()
12 void DynamicLoader::close()
14 if (m_handle != NULL) {
20 void* DynamicLoader::open(
const std::string& lib_path)
22 void* handle = dlopen(lib_path.c_str(), RTLD_LAZY);
30 void* DynamicLoader::load(
const std::string& funcname)
33 void* func = dlsym(m_handle, funcname.c_str());
34 if ((error = dlerror()) != NULL) {