Refuse to add port to component when parent graph is canceled
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Jun 2017 20:24:13 +0000 (16:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 21:03:27 +0000 (17:03 -0400)
commitbd7cc15bddddb727ea02fb44bde2d9f15cd82847
treebe81181f2a0d55426e32ebd2a286c375b5d53196
parent851b70bd612310f258e8b03562e1833700f8832b
Refuse to add port to component when parent graph is canceled

The objects owned by a graph should not be able to perform any useless
action. Having those constraints promise that certain contained objects
remain within certain states when the graph is canceled.

In this case, it is useless for a component to add a port, since this
port cannot be connected to another one within the same graph because
bt_graph_connect_ports() is not permitted when the graph is canceled.

We still allow ports to be removed when the graph is canceled for
symetric teardowns, for example.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/graph/component-internal.h
include/babeltrace/graph/component-status.h
lib/graph/filter.c
lib/graph/sink.c
lib/graph/source.c
This page took 0.024736 seconds and 4 git commands to generate.