SHARE
TWEET
brestows
a guest
Mar 28th, 2012
19
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- void *module = dlopen(infoPlugins.at(count).absoluteFilePath().toAscii().data(), RTLD_NOW);
- if(!module){continue;}
- for(int i=0; i< xconfig->plugins->data_count;++i)
- {
- if (xconfig->plugins->data[i].string == infoPlugins.at(count).fileName())
- qDebug()<<xconfig->plugins->data[i].string;
- }
- char *mod_info = "";
- char *error;
- char* (*module_info)();
- module_info = dlsym(module, "on_plugin_info");
- if ((error=dlerror)== NULL)
- {
- mod_info = (*module_info)();
- qDebug()<< "MOD INFO " << mod_info;
- }
- dlclose(module);
RAW Paste Data

