#include <babeltrace/iterator.h>
#include <babeltrace/plugin/component-factory.h>
+#include <babeltrace/ref.h>
+#include <babeltrace/values.h>
#include <popt.h>
#include <errno.h>
#include <stdlib.h>
struct bt_trace_descriptor *td_write;
struct bt_context *ctx;
struct bt_component_factory *component_factory;
+ struct bt_value *components = NULL;
int i;
call_plugins_hooks();
goto end;
}
+ components = bt_component_factory_get_components(component_factory);
+ if (!components || bt_value_array_is_empty(components)) {
+ printf_error("No plugins found, exiting.");
+ ret = -1;
+ goto end;
+ }
+
if (opt_input_paths->len == 0) {
ret = -1;
goto end;
free(opt_debug_info_dir);
free(opt_debug_info_target_prefix);
g_ptr_array_free(opt_input_paths, TRUE);
+ BT_PUT(components);
+ BT_PUT(component_factory);
if (partial_error)
exit(EXIT_FAILURE);
else