From: Philippe Proulx Date: Wed, 7 Jun 2017 20:24:13 +0000 (-0400) Subject: Refuse to add port to component when parent graph is canceled X-Git-Tag: v2.0.0-pre1~43 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=bd7cc15bddddb727ea02fb44bde2d9f15cd82847;hp=bd7cc15bddddb727ea02fb44bde2d9f15cd82847;p=babeltrace.git 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 Signed-off-by: Jérémie Galarneau ---