lib, bt2: graph API: remove "ports connected" listeners
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 11 Dec 2019 20:48:32 +0000 (15:48 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Jan 2020 20:15:24 +0000 (15:15 -0500)
commitd9d764cc911fa4a1df6c611fd708ea3f41521275
tree3b2623aa3575fc5b0b9f38feb96de67e45e6232b
parentff3fcfe46b5219b9a4480fee94755f4aabbf29cd
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.025183 seconds and 4 git commands to generate.