libs: Do not rely on nftw for detecting the validity of plugin path
[babeltrace.git] / src / lib / plugin / plugin-so.h
index 094b87ad2d5e7c9aaf37fc1b0c36f7fd635dec1d..a2259c8b017b57842f49ea31dad620c861653b4f 100644 (file)
@@ -27,6 +27,7 @@
 #include <glib.h>
 #include <gmodule.h>
 #include <babeltrace2/types.h>
+#include "common/macros.h"
 
 struct bt_plugin;
 struct bt_component_class;
@@ -52,10 +53,13 @@ struct bt_plugin_so_spec_data {
 };
 
 BT_HIDDEN
-struct bt_plugin_set *bt_plugin_so_create_all_from_file(const char *path);
+enum bt_plugin_status bt_plugin_so_create_all_from_file(const char *path,
+               bool fail_on_load_error, struct bt_plugin_set **plugin_set_out);
 
 BT_HIDDEN
-struct bt_plugin_set *bt_plugin_so_create_all_from_static(void);
+enum bt_plugin_status bt_plugin_so_create_all_from_static(
+               bool fail_on_load_error,
+               struct bt_plugin_set **plugin_set_out);
 
 void bt_plugin_so_on_add_component_class(struct bt_plugin *plugin,
                struct bt_component_class *comp_class);
This page took 0.025257 seconds and 4 git commands to generate.