#include <sys/stat.h>
#include <gmodule.h>
#include <stdbool.h>
+#include <dirent.h>
#define NATIVE_PLUGIN_SUFFIX ".so"
#define NATIVE_PLUGIN_SUFFIX_LEN sizeof(NATIVE_PLUGIN_SUFFIX)
module = g_module_open(path, 0);
if (!module) {
- printf_error("Module open error: %s", g_module_error());
+ printf_verbose("Module open error: %s\n", g_module_error());
ret = BT_COMPONENT_FACTORY_STATUS_ERROR;
goto end;
}
}
component_class = bt_component_class_create(type, name, description,
- init, factory->current_plugin);
+ init, factory->current_plugin);
g_ptr_array_add(factory->component_classes, component_class);
end:
return ret;