X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fconnection-internal.h;h=2a85296831089a06e3f46bc1d4326b5efbca7abd;hp=ac75320d6cf4480f397eca1780129f068a89866f;hb=bd14d76835630e092320c8a04300088242dcdc99;hpb=4a6b963eb0e4e9545deacfc74d81d3b9f96f060f diff --git a/include/babeltrace/graph/connection-internal.h b/include/babeltrace/graph/connection-internal.h index ac75320d..2a852968 100644 --- a/include/babeltrace/graph/connection-internal.h +++ b/include/babeltrace/graph/connection-internal.h @@ -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 @@ -72,4 +78,8 @@ struct bt_connection *bt_connection_create(struct bt_graph *graph, BT_HIDDEN 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 */