Allow a component to remove a port and any user to disconnect one
[babeltrace.git] / include / babeltrace / component / port-internal.h
index 437ba827c02d532be4afd89ee2ec36663c7b5c10..f693b2de2e90f766e5854976a3ee86cd1ade4985 100644 (file)
@@ -37,8 +37,7 @@ 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;
 };
 
 BT_HIDDEN
@@ -46,7 +45,7 @@ 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.024196 seconds and 4 git commands to generate.