lib, bt2: graph API: remove "ports connected" listeners
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 11 Dec 2019 20:48:32 +0000 (15:48 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 12 Dec 2019 20:04:25 +0000 (20:04 +0000)
commit2945edfe752782d2528af21bdbd3bbfef4cd51ca
tree11771c39f8e55112774914b2d35a5aba577bfa29
parent25cdf28b4a9d3e21c54cb6b18bf9a90528d89229
lib, bt2: graph API: remove "ports connected" listeners

Two ports being connected is always the consequence of the graph user
calling bt_graph_connect_ports() and this function returning
`BT_GRAPH_CONNECT_PORTS_STATUS_OK`. In other words, this event cannot
occur without a direct, concomitant action by the graph user.

Knowing this, the "ports connected" graph listeners are useless.

The "port added" listeners remain useful: a component can add a port at
many moments during the graph configuration phase, therefore having a
"port added" listener can avoid checking if the current graph components
have new ports every time you call bt_graph_add_*_component*() or
bt_graph_connect_ports().

This patch removes everything related to the "ports connected" graph
listeners.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I218c7b7b57c52f2e8589b35e3d89f38dfd961c0a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2636
Tested-by: jenkins <jenkins@lttng.org>
include/babeltrace2/graph/graph.h
src/bindings/python/bt2/bt2/graph.py
src/bindings/python/bt2/bt2/native_bt_graph.i
src/bindings/python/bt2/bt2/native_bt_graph.i.h
src/lib/graph/graph.c
src/lib/graph/graph.h
tests/bindings/python/bt2/test_graph.py
tests/lib/test_graph_topo.c
This page took 0.025478 seconds and 4 git commands to generate.