Fix: cli: cmd_list_plugins(): pass appropriate by-index functions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 1 Mar 2019 02:17:00 +0000 (21:17 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
cli/babeltrace.c

index 29f811f4e9c804d7e4855c85f666df4252c86a4b..8395dcbf7787c158af6328f22477d358a3b8fb71 100644 (file)
@@ -1187,19 +1187,19 @@ int cmd_list_plugins(struct bt_config *cfg)
                cmd_list_plugins_print_component_classes(plugin, "Source",
                        bt_plugin_get_source_component_class_count(plugin),
                        (plugin_borrow_comp_cls_by_index_func_t)
-                               bt_plugin_borrow_source_component_class_by_name_const,
+                               bt_plugin_borrow_source_component_class_by_index_const,
                        (spec_comp_cls_borrow_comp_cls_func_t)
                                bt_component_class_source_as_component_class);
                cmd_list_plugins_print_component_classes(plugin, "Filter",
                        bt_plugin_get_filter_component_class_count(plugin),
                        (plugin_borrow_comp_cls_by_index_func_t)
-                               bt_plugin_borrow_filter_component_class_by_name_const,
+                               bt_plugin_borrow_filter_component_class_by_index_const,
                        (spec_comp_cls_borrow_comp_cls_func_t)
                                bt_component_class_filter_as_component_class);
                cmd_list_plugins_print_component_classes(plugin, "Sink",
                        bt_plugin_get_sink_component_class_count(plugin),
                        (plugin_borrow_comp_cls_by_index_func_t)
-                               bt_plugin_borrow_sink_component_class_by_name_const,
+                               bt_plugin_borrow_sink_component_class_by_index_const,
                        (spec_comp_cls_borrow_comp_cls_func_t)
                                bt_component_class_sink_as_component_class);
        }
This page took 0.02543 seconds and 4 git commands to generate.