src.ctf.fs: add status conversion function
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 19 Jan 2022 22:20:28 +0000 (17:20 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 28 Jan 2022 16:22:26 +0000 (11:22 -0500)
commit1b7b1ef9a788b1987790d43c2559f1bf3b081179
tree23a254567b296ed1561cf5fa84c4a980ea5430ec
parent9021ae77076ea1805eb09d0d93f8d1a4081b633c
src.ctf.fs: add status conversion function

The line changed, in bt_message_iterator_class_initialize_method_status,
converts a ctf_msg_iter_medium_status to a
bt_message_iterator_class_initialize_method_status using a direct cast.
However, there is not a 1:1 mapping between the two enums.  There are
values in the source that are not valid in the destination.

Replace the int cast with a dedicated conversion method.

Change-Id: Iad24a87bb3926ea9191ca00e18e13df933807f65
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7094
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/fs.c
This page took 0.024145 seconds and 4 git commands to generate.