Visibility: split graph API into public and private interfaces
[babeltrace.git] / include / babeltrace / component / port-internal.h
index f693b2de2e90f766e5854976a3ee86cd1ade4985..fb4ff727bde71b018ccbf3ce4fff358b7228b731 100644 (file)
@@ -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);
This page took 0.024269 seconds and 4 git commands to generate.