bt2: make can_seek_beginning a method instead of a property
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 9 Sep 2019 17:19:02 +0000 (13:19 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 17 Sep 2019 19:05:53 +0000 (15:05 -0400)
commit14cfc8ce101e9a63b8d0aa3075407e987669c3ed
tree3d85527252a6d7330f91e40513166e10c7d08dc5
parentb39a11cfd7bf24185d268a2263b0212ca5ce23cb
bt2: make can_seek_beginning a method instead of a property

_GenericMessageIterator.can_seek_beginning and
_UserMessageIterator._user_can_seek_beginning are currently properties.
We will add the equivalent for can_seek_ns_from_origin, but this one
requires a parameter (the ns_from_origin value), so it can't be a
property, it has to be a method.  For consistency, change the
can_seek_beginning ones to be methods.

Change-Id: Ic2c5b54908753dc7498fb1d0f94022301f766a15
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2017
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/bindings/python/bt2/bt2/message_iterator.py
src/bindings/python/bt2/bt2/native_bt_component_class.i.h
tests/bindings/python/bt2/test_message_iterator.py
This page took 0.026222 seconds and 4 git commands to generate.