Remove default port API
[babeltrace.git] / cli / babeltrace.c
index 1a699909b1447bf7d54b7b9f1583ffc9c3a95b5c..8391c4a9d21a0e3469e82142fccde91b58626a02 100644 (file)
@@ -554,6 +554,8 @@ int connect_source_sink(struct bt_graph *graph,
                struct bt_component *sink)
 {
        int ret = 0;
+
+#if 0
        struct bt_connection *connection = NULL;
        struct bt_component *trimmer = NULL;
        struct bt_port *source_port =
@@ -623,6 +625,8 @@ end:
        bt_put(sink_port);
        bt_put(to_sink_port);
        bt_put(connection);
+
+#endif
        return ret;
 }
 
@@ -894,7 +898,7 @@ static int cmd_help(struct bt_config *cfg)
 
        for (i = 0; i < bt_plugin_get_component_class_count(plugin); i++) {
                struct bt_component_class *comp_cls =
-                       bt_plugin_get_component_class(plugin, i);
+                       bt_plugin_get_component_class_by_index(plugin, i);
                const char *comp_class_name =
                        bt_component_class_get_name(comp_cls);
                const char *comp_class_description =
@@ -1000,7 +1004,8 @@ static int cmd_list_plugins(struct bt_config *cfg)
 
                for (j = 0; j < component_classes_count; j++) {
                        struct bt_component_class *comp_class =
-                               bt_plugin_get_component_class(plugin, j);
+                               bt_plugin_get_component_class_by_index(
+                                       plugin, j);
                        const char *comp_class_name =
                                bt_component_class_get_name(comp_class);
                        const char *comp_class_description =
This page took 0.025632 seconds and 4 git commands to generate.