lib: de-duplicate assertions in bt_component_add_{input,output}_port
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 19 May 2023 21:24:39 +0000 (17:24 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 21 May 2023 12:02:12 +0000 (08:02 -0400)
commit63baac609f3929db31b8a438efba3c447472bfb8
tree502710cea7b8ed5ec6c7422bcdbf514f800678b5
parent805e57b014d3763c86568a0b966f4d5093a53e03
lib: de-duplicate assertions in bt_component_add_{input,output}_port

Move assertions from bt_component_add_input_port and
bt_component_add_output_port to add_port.  Add a parameter to indicate
to add_port if it's adding an input or output port.  This is only used
to select the correct strings for the "no duplicate name" pre-condition
check.  I think this de-duplication helps ensure both the input and
output paths are equivalent.

Change-Id: I217794719231251bf73d0347d6208af9fcaf6a0d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10037
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/graph/component.c
This page took 0.024522 seconds and 4 git commands to generate.