lib: remove unused _NO_SINK graph status
[babeltrace.git] / include / babeltrace / graph / component-source-const.h
index f0d9ee51b7cf9620022f8fff3fb0514ca1f0b592..8604359abe048efb72e46f95f6b218a021a6fbe4 100644 (file)
 
 #include <stdint.h>
 
-/* For bt_component, bt_component_filter, bt_port_output */
+/*
+ * For bt_component, bt_component_filter, bt_port_output,
+ * __BT_UPCAST_CONST, bt_component_class_source
+ */
 #include <babeltrace/types.h>
 
 #ifdef __cplusplus
@@ -37,9 +40,13 @@ static inline
 const bt_component *bt_component_source_as_component_const(
                const bt_component_source *component)
 {
-       return (void *) component;
+       return __BT_UPCAST_CONST(bt_component, component);
 }
 
+extern const bt_component_class_source *
+bt_component_source_borrow_class_const(
+               const bt_component_source *component);
+
 extern uint64_t bt_component_source_get_output_port_count(
                const bt_component_source *component);
 
This page took 0.025354 seconds and 4 git commands to generate.