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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Nov 2019 21:10:12 +0000 (16:10 -0500)
commiteaecdbb27a8613291f9d366ef68e52d9f020e488
treead53452ca177ea0c84d6d133f173bdb4a56d02e7
parentebe4c684d397992e70455847890cc2fe13d2b79d
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.025955 seconds and 4 git commands to generate.