X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fmessage.py;fp=bindings%2Fpython%2Fbt2%2Fbt2%2Fmessage.py;h=56b545daa98faf1c0220f424b5e2dd8f6cec7aec;hp=179a38ff8f8ff738cd85177f0b1364f88e4e1dfc;hb=e8ac1aaec8f07304d16bf787950c14cd7c49fc75;hpb=2c6f8520ad68e1ca0c9554d705c39790e7d3ef5f diff --git a/bindings/python/bt2/bt2/message.py b/bindings/python/bt2/bt2/message.py index 179a38ff..56b545da 100644 --- a/bindings/python/bt2/bt2/message.py +++ b/bindings/python/bt2/bt2/message.py @@ -60,7 +60,7 @@ class _EventMessage(_Message, _MessageWithDefaultClockSnapshot): @property def default_clock_snapshot(self): - self._check_has_default_clock_class(self.event.packet.stream.stream_class.default_clock_class) + self._check_has_default_clock_class(self.event.packet.stream.cls.default_clock_class) return self._get_default_clock_snapshot(self._borrow_default_clock_snapshot_ptr) @property @@ -74,7 +74,7 @@ class _EventMessage(_Message, _MessageWithDefaultClockSnapshot): class _PacketMessage(_Message, _MessageWithDefaultClockSnapshot): @property def default_clock_snapshot(self): - self._check_has_default_clock_class(self.packet.stream.stream_class.default_clock_class) + self._check_has_default_clock_class(self.packet.stream.cls.default_clock_class) return self._get_default_clock_snapshot(self._borrow_default_clock_snapshot_ptr) @property @@ -113,7 +113,7 @@ class _StreamEndMessage(_StreamMessage): class _StreamActivityMessage(_Message): @property def default_clock_snapshot(self): - self._check_has_default_clock_class(self.stream.stream_class.default_clock_class) + self._check_has_default_clock_class(self.stream.cls.default_clock_class) status, snapshot_ptr = self._borrow_default_clock_snapshot_ptr(self._ptr) if status == native_bt.MESSAGE_STREAM_ACTIVITY_CLOCK_SNAPSHOT_STATE_KNOWN: @@ -207,7 +207,7 @@ class _DiscardedEventsMessage(_DiscardedMessage): @property def _has_default_clock_snapshots(self): - return self.stream.stream_class.discarded_events_have_default_clock_snapshots + return self.stream.cls.discarded_events_have_default_clock_snapshots class _DiscardedPacketsMessage(_DiscardedMessage): @@ -219,7 +219,7 @@ class _DiscardedPacketsMessage(_DiscardedMessage): @property def _has_default_clock_snapshots(self): - return self.stream.stream_class.discarded_packets_have_default_clock_snapshots + return self.stream.cls.discarded_packets_have_default_clock_snapshots _MESSAGE_TYPE_TO_CLS = {