From 759f3caae66fb6b6c2c327bcbb0478e56883dd23 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 17 Jun 2019 12:00:21 -0400 Subject: [PATCH] bt2: Rename _set_default_clock_snapshot_ptr callback to _set_default_clock_snapshot I don't think it should have the _ptr suffix, as it doesn't take a SWIG pointer object, but a uint64_t. Change-Id: I5a6915e61cd0b482fe04a1ba62babbc3f3bc63bb Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/1475 Tested-by: jenkins Reviewed-by: Philippe Proulx --- src/bindings/python/bt2/bt2/message.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/bt2/bt2/message.py b/src/bindings/python/bt2/bt2/message.py index 97782653..15e25f20 100644 --- a/src/bindings/python/bt2/bt2/message.py +++ b/src/bindings/python/bt2/bt2/message.py @@ -146,7 +146,7 @@ class _StreamActivityMessage(_Message): self._set_default_clock_snapshot_state(self._ptr, native_bt.MESSAGE_STREAM_ACTIVITY_CLOCK_SNAPSHOT_STATE_INFINITE) else: assert utils._is_uint64(value) - self._set_default_clock_snapshot_ptr(self._ptr, value) + self._set_default_clock_snapshot(self._ptr, value) _default_clock_snapshot = property(fset=_default_clock_snapshot) @@ -159,14 +159,14 @@ class _StreamActivityMessage(_Message): class _StreamActivityBeginningMessage(_StreamActivityMessage): _borrow_default_clock_snapshot_ptr = staticmethod(native_bt.message_stream_activity_beginning_borrow_default_clock_snapshot_const) - _set_default_clock_snapshot_ptr = staticmethod(native_bt.message_stream_activity_beginning_set_default_clock_snapshot) + _set_default_clock_snapshot = staticmethod(native_bt.message_stream_activity_beginning_set_default_clock_snapshot) _set_default_clock_snapshot_state = staticmethod(native_bt.message_stream_activity_beginning_set_default_clock_snapshot_state) _borrow_stream_ptr = staticmethod(native_bt.message_stream_activity_beginning_borrow_stream) class _StreamActivityEndMessage(_StreamActivityMessage): _borrow_default_clock_snapshot_ptr = staticmethod(native_bt.message_stream_activity_end_borrow_default_clock_snapshot_const) - _set_default_clock_snapshot_ptr = staticmethod(native_bt.message_stream_activity_end_set_default_clock_snapshot) + _set_default_clock_snapshot = staticmethod(native_bt.message_stream_activity_end_set_default_clock_snapshot) _set_default_clock_snapshot_state = staticmethod(native_bt.message_stream_activity_end_set_default_clock_snapshot_state) _borrow_stream_ptr = staticmethod(native_bt.message_stream_activity_end_borrow_stream) -- 2.34.1