bt2: add bt2.get_{greatest_operative,maximal}_mip_version()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sun, 11 Aug 2019 02:38:39 +0000 (22:38 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 13 Aug 2019 00:28:02 +0000 (20:28 -0400)
commitf1f741737f03892d781ed00de554606eeea84c15
tree9fee80f9510f3b98821f32f54b90d5b2248a4cf3
parentfd57054b8b8df8e81accec2443042308a268067f
bt2: add bt2.get_{greatest_operative,maximal}_mip_version()

Those new functions wrap bt_get_greatest_operative_mip_version() and
bt_get_maximal_mip_version().

bt2.get_greatest_operative_mip_version() excepts a list of
`bt2.ComponentDescriptor` objects. The function builds a component
descriptor set (bt_component_descriptor_set_create()) and adds the
corresponding component descriptors to it and then calls
bt_get_greatest_operative_mip_version().

bt_get_greatest_operative_mip_version() translates
`BT_GET_OPERATIVE_MIP_VERSION_STATUS_NO_MATCH` into `None`.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Iaeb36b976f3c651fa82a86de2e835f782d682299
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1877
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/bindings/python/bt2/Makefile.am
src/bindings/python/bt2/bt2/__init__.py
src/bindings/python/bt2/bt2/mip.py [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt.i
src/bindings/python/bt2/bt2/native_bt_mip.i [new file with mode: 0644]
src/bindings/python/bt2/bt2/native_bt_mip.i.h [new file with mode: 0644]
tests/bindings/python/bt2/test_mip.py [new file with mode: 0644]
This page took 0.02495 seconds and 4 git commands to generate.