| |
---|
| | struct dirent *entry; |
---|
| | while((entry = readdir(dir)) != NULL) { |
---|
| | String d = entry->d_name; |
---|
| | if ((d.substr(0,6) == "plugin") && (d.substr(d.length() - 3,3) == ".so")) { |
---|
| | if (!_scim_config->read(String(HONOKA_CONFIG_PLUGINLOADER_PREFIX) + "/" + d.substr(0,d.length() - 3),true)) |
---|
| | continue; |
---|
| | d = String(HONOKA_PLUGINDIR) + "/" + d; |
---|
| | void* plugin = dlopen(d.c_str(), RTLD_LAZY); |
---|
| | if (!plugin) continue; |
---|
| | createInstanceFunc *getInstance = (createInstanceFunc *)dlsym(plugin,"getHonokaPluginInstance"); |
---|
| |
---|
| | |