28 #define YUILogComponent "ui"
31 #include "YUIPlugin.h"
34 #include "Libyui_config.h"
46 _pluginLibHandle = dlopen( pluginFilename.c_str(),
47 RTLD_NOW | RTLD_GLOBAL);
49 if ( ! _pluginLibHandle )
51 _errorMsg = dlerror();
54 <<
"\": " << _errorMsg
70 if ( _pluginLibHandle )
71 dlclose( _pluginLibHandle );
79 string pluginName = PLUGIN_PREFIX;
80 pluginName.append( _pluginLibBaseName );
81 pluginName.append( PLUGIN_SUFFIX );
83 YPath plugin( PLUGINDIR, pluginName );
91 if ( ! _pluginLibHandle )
94 void * addr = dlsym( _pluginLibHandle, symbol );
98 yuiError() <<
"Could not locate symbol \"" << symbol
109 return _pluginLibHandle == 0;
115 return _pluginLibHandle != 0;