iterator: save original next callback in iterator struct
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Jun 2019 17:01:03 +0000 (13:01 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 18 Jul 2019 15:53:33 +0000 (11:53 -0400)
commit1d801aab66940bf74bde9b5d462eac19d6c73b38
tree37214460b337cbcfaa6989d34ecae652b62871cf
parent1b3630b648de9e965c607a4a505d23cdbbf4a8ec
iterator: save original next callback in iterator struct

When we restore the iterator's next method (after we overrode it with
post_auto_seek_next), we inspect the upstream component class to find
out what was the original method.  It seems simpler to save and restore
the function pointer.  This is what this patch does.

No user-visible changes intended.

Change-Id: If5eb7df692d2aa745f7f19e22c8046afb5b8d1d2
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1485
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/lib/graph/iterator.c
src/lib/graph/message/iterator.h
This page took 0.025489 seconds and 4 git commands to generate.