28 #define YUILogComponent "ui"
31 #include "YUIPlugin.h"
34 #include "Libyui_config.h"
43 _pluginLibHandle = dlopen( pluginFilename.c_str(),
44 RTLD_NOW | RTLD_GLOBAL);
46 if ( ! _pluginLibHandle )
48 _errorMsg = dlerror();
51 <<
"\": " << _errorMsg
67 if ( _pluginLibHandle )
68 dlclose( _pluginLibHandle );
76 std::string pluginName = PLUGIN_PREFIX;
77 pluginName.append( _pluginLibBaseName );
78 pluginName.append( PLUGIN_SUFFIX );
80 YPath plugin( PLUGINDIR, pluginName );
88 if ( ! _pluginLibHandle )
91 void * addr = dlsym( _pluginLibHandle, symbol );
95 yuiError() <<
"Could not locate symbol \"" << symbol
106 return _pluginLibHandle == 0;
112 return _pluginLibHandle != 0;