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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:21 +0000 (11:58 -0400)
commitea3078356ddf97171b1d58ebd06272c9eba86737
tree79f0fa983b0cfdead7539c5815f8bc7817a25315
parented68d910edac8cc1ae62b8ef237d1c32fd8e06d0
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.024701 seconds and 4 git commands to generate.