lib: remove unused _NO_SINK graph status
[babeltrace.git] / include / babeltrace / graph / self-component-filter.h
index 13a976f4b3e2e68aa3917eeeff5a7c86b49f3753..3fec35cf8424e6c89d088d8ba389b1e748d70ec0 100644 (file)
 
 #include <stdint.h>
 
-/* For enum bt_self_component_status */
+/* For bt_self_component_status */
 #include <babeltrace/graph/self-component.h>
 
 /*
  * For bt_component_filter, bt_self_component, bt_self_component_filter,
- * bt_self_component_port_input, bt_self_component_port_output
+ * bt_self_component_port_input, bt_self_component_port_output,
+ * __BT_UPCAST, __BT_UPCAST_CONST
  */
 #include <babeltrace/types.h>
 
@@ -43,7 +44,7 @@ static inline
 bt_self_component *bt_self_component_filter_as_self_component(
                bt_self_component_filter *self_comp_filter)
 {
-       return (void *) self_comp_filter;
+       return __BT_UPCAST(bt_self_component, self_comp_filter);
 }
 
 static inline
@@ -51,12 +52,9 @@ const bt_component_filter *
 bt_self_component_filter_as_component_filter(
                bt_self_component_filter *self_comp_filter)
 {
-       return (const void *) self_comp_filter;
+       return __BT_UPCAST_CONST(bt_component_filter, self_comp_filter);
 }
 
-extern bt_component_filter *bt_component_filter_borrow_from_self(
-               bt_self_component_filter *self_component);
-
 extern bt_self_component_port_output *
 bt_self_component_filter_borrow_output_port_by_name(
                bt_self_component_filter *self_component,
@@ -67,7 +65,7 @@ bt_self_component_filter_borrow_output_port_by_index(
                bt_self_component_filter *self_component,
                uint64_t index);
 
-extern enum bt_self_component_status
+extern bt_self_component_status
 bt_self_component_filter_add_output_port(
                bt_self_component_filter *self_component,
                const char *name, void *data,
@@ -83,7 +81,7 @@ bt_self_component_filter_borrow_input_port_by_index(
                bt_self_component_filter *self_component,
                uint64_t index);
 
-extern enum bt_self_component_status
+extern bt_self_component_status
 bt_self_component_filter_add_input_port(
                bt_self_component_filter *self_component,
                const char *name, void *data,
This page took 0.029559 seconds and 4 git commands to generate.