Visibility: split graph API into public and private interfaces
[babeltrace.git] / include / babeltrace / component / connection-internal.h
index 74144cd5d3eb4b7c582950e8528085fdf817dd61..10533aff7b9e220f9c30350754b725d131db3a3c 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include <babeltrace/component/connection.h>
+#include <babeltrace/component/private-connection.h>
 #include <babeltrace/object-internal.h>
 
 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,
This page took 0.02308 seconds and 4 git commands to generate.