Call a single "ports connected/disconnected" graph listener instead of two
[babeltrace.git] / include / babeltrace / graph / graph-internal.h
index e8e9e7f6e3f1d03d325aa5de35a829f2e99e3e2f..85c196be6e2bf4793d09da989f7b9b96b80b6307 100644 (file)
@@ -58,8 +58,8 @@ struct bt_graph {
        struct {
                GArray *port_added;
                GArray *port_removed;
-               GArray *port_connected;
-               GArray *port_disconnected;
+               GArray *ports_connected;
+               GArray *ports_disconnected;
        } listeners;
 };
 
@@ -71,11 +71,14 @@ void bt_graph_notify_port_removed(struct bt_graph *graph,
                struct bt_component *comp, struct bt_port *port);
 
 BT_HIDDEN
-void bt_graph_notify_port_connected(struct bt_graph *graph,
-               struct bt_port *port);
+void bt_graph_notify_ports_connected(struct bt_graph *graph,
+               struct bt_port *upstream_port, struct bt_port *downstream_port);
 
 BT_HIDDEN
-void bt_graph_notify_port_disconnected(struct bt_graph *graph,
-               struct bt_component *comp, struct bt_port *port);
+void bt_graph_notify_ports_disconnected(struct bt_graph *graph,
+               struct bt_component *upstream_comp,
+               struct bt_component *downstream_comp,
+               struct bt_port *upstream_port,
+               struct bt_port *downstream_port);
 
 #endif /* BABELTRACE_COMPONENT_COMPONENT_GRAPH_INTERNAL_H */
This page took 0.023579 seconds and 4 git commands to generate.