Remove bt_graph_add_component_as_sibling()
[babeltrace.git] / include / babeltrace / graph / graph.h
index cb14c7daa2c74e6a63dffa93b0f764112bc7a20c..ce83268a69f846834c6b5b3e38aa317507344120 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <babeltrace/graph/component.h>
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -37,6 +38,8 @@ struct bt_port;
 struct bt_connection;
 
 enum bt_graph_status {
+       /** Canceled. */
+       BT_GRAPH_STATUS_CANCELED = 125,
        /** No sink can consume at the moment. */
        BT_GRAPH_STATUS_AGAIN = 11,
        /** Downstream component does not support multiple inputs. */
@@ -74,15 +77,6 @@ extern struct bt_connection *bt_graph_connect_ports(struct bt_graph *graph,
                struct bt_port *upstream,
                struct bt_port *downstream);
 
-/**
- * Add a component as a "sibling" of the origin component. Sibling share
- * connections equivalent to each other at the time of connection (same
- * upstream and downstream ports).
- */
-extern enum bt_graph_status bt_graph_add_component_as_sibling(
-               struct bt_graph *graph, struct bt_component *origin,
-               struct bt_component *new_component);
-
 /**
  * Run graph to completion or until a single sink is left and "AGAIN" is received.
  *
@@ -114,6 +108,9 @@ extern enum bt_graph_status bt_graph_add_ports_disconnected_listener(
                struct bt_graph *graph,
                bt_graph_ports_disconnected_listener listener, void *data);
 
+extern enum bt_graph_status bt_graph_cancel(struct bt_graph *graph);
+extern bt_bool bt_graph_is_canceled(struct bt_graph *graph);
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.023221 seconds and 4 git commands to generate.