lib: add bt_get_greatest_operative_mip_version_with_restriction()
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Mar 2024 23:09:06 +0000 (19:09 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit8f351a1579abd902ab9ddd00a5820bdb7207b59a
treeae2b3f7d2d605f6485d4844b2edbaad3d0e0e4b0
parente596a1f652845fdeb1cece2cb8e5c9e924a7297e
lib: add bt_get_greatest_operative_mip_version_with_restriction()

This new function works like bt_get_greatest_operative_mip_version(),
but has an additional optional MIP version restriction range set.

For example, if all the components would support MIP 0 and 1,
bt_get_greatest_operative_mip_version() would return 1, while
bt_get_greatest_operative_mip_version_with_restriction() with the
`mip_version_restriction` parameter only containing [0, 0] would
return 0.

This new function provides more control over the preferred MIP version
to use while avoiding the complexity of exposing a direct "get supported
MIP versions" method call.

Philippe updated the documentation.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ic8bbdee6055a0816e398f0f27ac0ca8c45f0b85a
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12791
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
include/babeltrace2/graph/component-class-dev.h
include/babeltrace2/graph/component-descriptor-set.h
include/babeltrace2/graph/message.h
include/babeltrace2/logging.h
src/lib/graph/mip.c
This page took 0.025006 seconds and 4 git commands to generate.