X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-output.h;h=6fd4b138fb88b48ba5c796573d1e462b10087c6c;hb=b19ff26f04df428047676dd736bd7cc9473906fe;hp=5d58698ae6555258874fea2a9f6cd05ddc289b0a;hpb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-port-output.h b/include/babeltrace/graph/self-component-port-output.h index 5d58698a..6fd4b138 100644 --- a/include/babeltrace/graph/self-component-port-output.h +++ b/include/babeltrace/graph/self-component-port-output.h @@ -26,25 +26,27 @@ /* For enum bt_self_component_port_status */ #include +/* + * For bt_port_output, bt_self_component_port, + * bt_self_component_port_output + */ +#include + #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; }