Fix possible leaks in graph's current design
[babeltrace.git] / include / babeltrace / graph / connection-internal.h
index d22c7eea04e8af898f647957c1a9086ee687b95c..2a85296831089a06e3f46bc1d4326b5efbca7abd 100644 (file)
@@ -48,6 +48,12 @@ struct bt_connection {
        struct bt_port *downstream_port;
        /* Upstream port. */
        struct bt_port *upstream_port;
+
+       /*
+        * Weak references to all the notification iterators that were
+        * created on this connection.
+        */
+       GPtrArray *iterators;
 };
 
 static inline
@@ -70,7 +76,10 @@ struct bt_connection *bt_connection_create(struct bt_graph *graph,
                struct bt_port *downstream_port);
 
 BT_HIDDEN
-void bt_connection_disconnect_ports(struct bt_connection *conn,
-               struct bt_component *comp);
+void bt_connection_disconnect_ports(struct bt_connection *conn);
+
+BT_HIDDEN
+void bt_connection_remove_iterator(struct bt_connection *conn,
+               struct bt_notification_iterator *iterator);
 
 #endif /* BABELTRACE_COMPONENT_CONNECTION_INTERNAL_H */
This page took 0.024433 seconds and 4 git commands to generate.