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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Jun 2019 17:58:21 +0000 (13:58 -0400)
commit572075a867d130d6f997188a8c01aff6337f0bd7
tree3b1d4bfb56fba1bd76694e50be67ad8aef151e57
parentda9c4c5260242efe4e3c2ff4a15201f7cbd1c89a
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.025367 seconds and 4 git commands to generate.