Visibility: split graph API into public and private interfaces
[babeltrace.git] / include / babeltrace / component / port-internal.h
index 437ba827c02d532be4afd89ee2ec36663c7b5c10..fb4ff727bde71b018ccbf3ce4fff358b7228b731 100644 (file)
@@ -37,16 +37,29 @@ struct bt_port {
        struct bt_object base;
        enum bt_port_type type;
        GString *name;
-       GPtrArray *connections;
-       uint64_t max_connection_count;
+       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);
 
 BT_HIDDEN
-int bt_port_add_connection(struct bt_port *port,
+void bt_port_set_connection(struct bt_port *port,
                struct bt_connection *connection);
 
 #ifdef __cplusplus
This page took 0.023057 seconds and 4 git commands to generate.