X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fcomponent%2Fport-internal.h;h=fb4ff727bde71b018ccbf3ce4fff358b7228b731;hb=890882eff34b4cba6f08a25f8ca56866c20b3fbe;hp=f693b2de2e90f766e5854976a3ee86cd1ade4985;hpb=1bf957a039dfe5a1cd00659779fdb004aacd706b;p=babeltrace.git diff --git a/include/babeltrace/component/port-internal.h b/include/babeltrace/component/port-internal.h index f693b2de..fb4ff727 100644 --- a/include/babeltrace/component/port-internal.h +++ b/include/babeltrace/component/port-internal.h @@ -40,6 +40,20 @@ struct bt_port { struct bt_connection *connection; }; +static inline +struct bt_port *bt_port_from_private( + struct bt_private_port *private_port) +{ + return (void *) private_port; +} + +static inline +struct bt_private_port *bt_private_port_from_port( + struct bt_port *port) +{ + return (void *) port; +} + BT_HIDDEN struct bt_port *bt_port_create(struct bt_component *parent_component, enum bt_port_type type, const char *name);