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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Jan 2020 20:15:24 +0000 (15:15 -0500)
commit4ba42e0047963530490c46be14503f10e9ed7354
tree38ddcc80fe4f6a457428cc9ac712f78e1e30be02
parent68e2deedb3317cbe11bef0d4b45803a60d386edb
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.024885 seconds and 4 git commands to generate.