lib: create common base for bt_component_class_{source,filter}
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 7 Jan 2020 22:23:31 +0000 (17:23 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 8 Jan 2020 21:50:22 +0000 (21:50 +0000)
commit41a3efcdbbdd863c3a10a9aefa8d725d3257d77c
tree71b294ef3411beef15b37e6178e3cb79c60da322
parenta3f0c7db90f4cfc81090a83a7442b7bc624d5789
lib: create common base for bt_component_class_{source,filter}

There are multiple spots which deal with message iterators, that have
duplicated code for source and filter components.  The code is the same,
except that one side deals with a bt_component_class_source and the
other with a bt_component_class_filter.

This patch introduce a common base,
bt_component_class_with_iterator_class, that holds the message iterator
class property.  The aforementioned code paths can then be deduplicated.

Change-Id: Ib2b42da4e77a0ab7faf94533684a7c1d665eb2e9
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2744
Tested-by: jenkins <jenkins@lttng.org>
src/lib/graph/component-class.c
src/lib/graph/component-class.h
src/lib/graph/iterator.c
This page took 0.025784 seconds and 4 git commands to generate.