ctf: make ctf_msg_iter_seek assert that the seek callback is not NULL
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Nov 2019 21:00:57 +0000 (16:00 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 15 Nov 2019 18:08:12 +0000 (13:08 -0500)
commit026f1a5ae0fde993dc87497aa1ac06c112734247
tree73432cceb0da1e0696888cfa318bc0593854860c
parent30174f59ca102e1a3cff21521c901523597483ad
ctf: make ctf_msg_iter_seek assert that the seek callback is not NULL

There should be no reason to call ctf_msg_iter_seek if there is no seek
callback.  It's the user of the ctf_msg_iter who passes medium
operations (at creation time), so it should be aware if there is a seek
callback or not.

This allows removing the UNSUPPORTED values in enum ctf_msg_iter_status
and enum ctf_msg_iter_medium_status.

Change-Id: Ic3591b1e909c7cf0e12d18f40b921a180cf344c8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/common/msg-iter/msg-iter.c
src/plugins/ctf/common/msg-iter/msg-iter.h
This page took 0.025636 seconds and 4 git commands to generate.