lib: Reset libbabeltrace2 to SONANE 0
[babeltrace.git] / include / babeltrace / graph / self-component-source.h
index ed2676e7e60fcb9264679e7e9d59ec7d6d8a8c72..5fdee3f33e416bc884277f64ed6d1144c61a389f 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_source, bt_self_component, bt_self_component_source,
- * bt_self_component_port_output
+ * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST
  */
 #include <babeltrace/types.h>
 
@@ -42,7 +42,7 @@ static inline
 bt_self_component *bt_self_component_source_as_self_component(
                bt_self_component_source *self_comp_source)
 {
-       return (void *) self_comp_source;
+       return __BT_UPCAST(bt_self_component, self_comp_source);
 }
 
 static inline
@@ -50,7 +50,7 @@ const bt_component_source *
 bt_self_component_source_as_component_source(
                bt_self_component_source *self_comp_source)
 {
-       return (const void *) self_comp_source;
+       return __BT_UPCAST_CONST(bt_component_source, self_comp_source);
 }
 
 extern bt_self_component_port_output *
@@ -63,7 +63,7 @@ bt_self_component_source_borrow_output_port_by_index(
                bt_self_component_source *self_component,
                uint64_t index);
 
-extern enum bt_self_component_status
+extern bt_self_component_status
 bt_self_component_source_add_output_port(
                bt_self_component_source *self_component,
                const char *name, void *user_data,
This page took 0.025021 seconds and 4 git commands to generate.