Fix: headers: add missing end of `extern "C"` curly brackets (for C++)
[babeltrace.git] / include / babeltrace / graph / self-component-port-output.h
index 5d58698ae6555258874fea2a9f6cd05ddc289b0a..293f705bf4a2a1707824128a955532a5a7a0fe4f 100644 (file)
  * SOFTWARE.
  */
 
-/* For enum bt_self_component_port_status */
-#include <babeltrace/graph/self-component-port.h>
+/*
+ * For bt_port_output, bt_self_component_port,
+ * bt_self_component_port_output
+ */
+#include <babeltrace/types.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-struct bt_port_output;
-struct bt_self_component_port;
-struct bt_self_component_port_output;
-
 static inline
-struct bt_self_component_port *
+bt_self_component_port *
 bt_self_component_port_output_as_self_component_port(
-               struct bt_self_component_port_output *self_component_port)
+               bt_self_component_port_output *self_component_port)
 {
        return (void *) self_component_port;
 }
 
 static inline
-const struct bt_port_output *bt_self_component_port_output_as_port_output(
-               struct bt_self_component_port_output *self_component_port)
+const bt_port_output *bt_self_component_port_output_as_port_output(
+               bt_self_component_port_output *self_component_port)
 {
        return (const void *) self_component_port;
 }
This page took 0.025804 seconds and 4 git commands to generate.