diff options
Diffstat (limited to 'src/plugin')
-rw-r--r-- | src/plugin/pluginmgr_dl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugin/pluginmgr_dl.cpp b/src/plugin/pluginmgr_dl.cpp index 337fa99..f6b4ef3 100644 --- a/src/plugin/pluginmgr_dl.cpp +++ b/src/plugin/pluginmgr_dl.cpp @@ -18,4 +18,11 @@ void pluginManager::scanPlugin() strcpy(fn[fcnt++],file->d_name); closedir(dir); } + for(int i=0;i<fcnt;++i) + { + void* hso=dlopen(fn[i],RTLD_LAZY); + if(!hso)continue; + void* hndi=dlsym(hso,"getPluginInterface"); + if(!hndi)continue; + } } |