*/
#include <babeltrace/graph/component.h>
+#include <babeltrace/types.h>
#ifdef __cplusplus
extern "C" {
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. */
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.
*
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