daily pastebin goal
46%
SHARE
TWEET

brestows

a guest Mar 28th, 2012 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         void *module = dlopen(infoPlugins.at(count).absoluteFilePath().toAscii().data(), RTLD_NOW);
  2.         if(!module){continue;}
  3.  
  4.         for(int i=0; i< xconfig->plugins->data_count;++i)
  5.         {
  6.             if (xconfig->plugins->data[i].string == infoPlugins.at(count).fileName())
  7.                     qDebug()<<xconfig->plugins->data[i].string;
  8.         }
  9.  
  10.         char *mod_info = "";
  11.         char *error;
  12.         char* (*module_info)();
  13.         module_info = dlsym(module, "on_plugin_info");
  14.         if ((error=dlerror)== NULL)
  15.         {
  16.                 mod_info = (*module_info)();
  17.                 qDebug()<< "MOD INFO " << mod_info;
  18.         }
  19.         dlclose(module);
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top