X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fcomponent%2Fconnection-internal.h;h=10533aff7b9e220f9c30350754b725d131db3a3c;hb=890882eff34b4cba6f08a25f8ca56866c20b3fbe;hp=74144cd5d3eb4b7c582950e8528085fdf817dd61;hpb=1bf957a039dfe5a1cd00659779fdb004aacd706b;p=babeltrace.git diff --git a/include/babeltrace/component/connection-internal.h b/include/babeltrace/component/connection-internal.h index 74144cd5..10533aff 100644 --- a/include/babeltrace/component/connection-internal.h +++ b/include/babeltrace/component/connection-internal.h @@ -28,6 +28,7 @@ */ #include +#include #include struct bt_graph; @@ -49,6 +50,20 @@ struct bt_connection { struct bt_port *upstream_port; }; +static inline +struct bt_connection *bt_connection_from_private( + struct bt_private_connection *private_connection) +{ + return (void *) private_connection; +} + +static inline +struct bt_private_connection *bt_private_connection_from_connection( + struct bt_connection *connection) +{ + return (void *) connection; +} + BT_HIDDEN struct bt_connection *bt_connection_create(struct bt_graph *graph, struct bt_port *upstream_port,