+bt_plugin_status bt_plugin_find_wrapper(const char *plugin_name,
+ bt_bool fail_on_load_error, const bt_plugin **plugin)
+{
+ bt_plugin_status status;
+
+ status = bt_plugin_find(plugin_name, fail_on_load_error,
+ plugin);
+ if (status != BT_PLUGIN_STATUS_OK) {
+ *plugin = NULL;
+ }
+
+ return status;
+}
+
+bt_plugin_status bt_plugin_find_all_from_file_wrapper(
+ const char *path, bt_bool fail_on_load_error,
+ const bt_plugin_set **plugin_set)
+{
+ bt_plugin_status status;
+
+ status = bt_plugin_find_all_from_file(path, fail_on_load_error,
+ plugin_set);
+ if (status != BT_PLUGIN_STATUS_OK) {
+ *plugin_set = NULL;
+ }
+
+ return status;
+}
+
+bt_plugin_status bt_plugin_find_all_from_dir_wrapper(
+ const char *path, bt_bool recurse, bt_bool fail_on_load_error,
+ const bt_plugin_set **plugin_set)
+{
+ bt_plugin_status status;
+
+ status = bt_plugin_find_all_from_dir(path, recurse, fail_on_load_error,
+ plugin_set);
+ if (status != BT_PLUGIN_STATUS_OK) {
+ *plugin_set = NULL;
+ }
+
+ return status;
+}
+