X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component-port-input.h;h=ab8694b180dc793fa2a65750240aa5f35dad92a6;hb=b19ff26f04df428047676dd736bd7cc9473906fe;hp=2a55c6029650ef52c57f15f72dcbd410e8678190;hpb=c5b9b4417bedfbec9b5dd23b8395ccdd4eeffc44;p=babeltrace.git diff --git a/include/babeltrace/graph/self-component-port-input.h b/include/babeltrace/graph/self-component-port-input.h index 2a55c602..ab8694b1 100644 --- a/include/babeltrace/graph/self-component-port-input.h +++ b/include/babeltrace/graph/self-component-port-input.h @@ -26,25 +26,27 @@ /* For enum bt_self_component_port_status */ #include +/* + * For bt_port_input, bt_self_component_port, + * bt_self_component_port_input + */ +#include + #ifdef __cplusplus extern "C" { #endif -struct bt_port_input; -struct bt_self_component_port; -struct bt_self_component_port_input; - static inline -struct bt_self_component_port * +bt_self_component_port * bt_self_component_port_input_as_self_component_port( - struct bt_self_component_port_input *self_component_port) + bt_self_component_port_input *self_component_port) { return (void *) self_component_port; } static inline -const struct bt_port_input *bt_self_component_port_input_as_port_input( - const struct bt_self_component_port_input *self_component_port) +const bt_port_input *bt_self_component_port_input_as_port_input( + const bt_self_component_port_input *self_component_port) { return (const void *) self_component_port; }