| 101 | } |
| 102 | |
| 103 | void* plugin_manager_impl::load_library(const std::string& _path) { |
| 104 | #ifdef _WIN32 |
| 105 | return LoadLibrary(_path.c_str()); |
| 106 | #else |
| 107 | void* handle = dlopen(_path.c_str(), RTLD_LAZY | RTLD_LOCAL); |
| 108 | if (handle == nullptr) { |
| 109 | VSOMEIP_ERROR << "Could not dlopen \"" << _path << "\" due to err: " << dlerror(); |
| 110 | } |
| 111 | |
| 112 | return handle; |
| 113 | #endif |
| 114 | } |
| 115 | |
| 116 | void* plugin_manager_impl::load_symbol(void* _handle, const std::string& _symbol_name) { |
| 117 | void* symbol = nullptr; |