lib: make plugin API const-correct
[babeltrace.git] / include / babeltrace / graph / component.h
index f2db9d723c1f254056937b90e1be920fe016429f..7edbc0c31414833b68bcc7cce44d5eeb08c4c915 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_GRAPH_COMPONENT_H
 
 /*
- * BabelTrace - Babeltrace Component Interface
- *
  * Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
@@ -33,9 +31,6 @@
 /* For bt_bool */
 #include <babeltrace/types.h>
 
-/* For bt_get */
-#include <babeltrace/ref.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -87,13 +82,7 @@ bt_bool bt_component_is_sink(struct bt_component *component)
                BT_COMPONENT_CLASS_TYPE_SINK;
 }
 
-extern struct bt_graph *bt_component_borrow_graph(struct bt_component *component);
-
-static inline
-struct bt_graph *bt_component_get_graph(struct bt_component *component)
-{
-       return bt_get(bt_component_borrow_graph(component));
-}
+extern bt_bool bt_component_graph_is_canceled(struct bt_component *component);
 
 #ifdef __cplusplus
 }
This page took 0.023419 seconds and 4 git commands to generate.