lib: rename include dir to babeltrace2
[babeltrace.git] / bindings / python / bt2 / bt2 / stream_class.py
index fa13cb3b83c9b715fc5dc401068a4dac9c984838..048cb70d963eadfb1061ed3b44f0201ff360f74d 100644 (file)
@@ -129,24 +129,58 @@ class StreamClass(object._SharedObject, collections.abc.Mapping):
     _assigns_automatic_stream_id = property(fset=_assigns_automatic_stream_id)
 
     @property
-    def packets_have_default_beginning_clock_snapshot(self):
-        return native_bt.stream_class_packets_have_default_beginning_clock_snapshot(self._ptr)
+    def packets_have_beginning_default_clock_snapshot(self):
+        return native_bt.stream_class_packets_have_beginning_default_clock_snapshot(self._ptr)
 
-    def _packets_have_default_beginning_clock_snapshot(self, value):
+    def _packets_have_beginning_default_clock_snapshot(self, value):
         utils._check_bool(value)
-        native_bt.stream_class_set_packets_have_default_beginning_clock_snapshot(self._ptr, value)
+        native_bt.stream_class_set_packets_have_beginning_default_clock_snapshot(self._ptr, value)
 
-    _packets_have_default_beginning_clock_snapshot = property(fset=_packets_have_default_beginning_clock_snapshot)
+    _packets_have_beginning_default_clock_snapshot = property(fset=_packets_have_beginning_default_clock_snapshot)
 
     @property
-    def packets_have_default_end_clock_snapshot(self):
-        return native_bt.stream_class_packets_have_default_end_clock_snapshot(self._ptr)
+    def packets_have_end_default_clock_snapshot(self):
+        return native_bt.stream_class_packets_have_end_default_clock_snapshot(self._ptr)
 
-    def _packets_have_default_end_clock_snapshot(self, value):
+    def _packets_have_end_default_clock_snapshot(self, value):
         utils._check_bool(value)
-        native_bt.stream_class_set_packets_have_default_end_clock_snapshot(self._ptr, value)
+        native_bt.stream_class_set_packets_have_end_default_clock_snapshot(self._ptr, value)
 
-    _packets_have_default_end_clock_snapshot = property(fset=_packets_have_default_end_clock_snapshot)
+    _packets_have_end_default_clock_snapshot = property(fset=_packets_have_end_default_clock_snapshot)
+
+    @property
+    def supports_discarded_events(self):
+        return native_bt.stream_class_supports_discarded_events(self._ptr)
+
+    def _set_supports_discarded_events(self, supports, with_cs=False):
+        utils._check_bool(supports)
+        utils._check_bool(with_cs)
+
+        if not supports and with_cs:
+            raise ValueError('cannot not support discarded events, but have default clock snapshots')
+
+        native_bt.stream_class_set_supports_discarded_events(self._ptr, supports, with_cs)
+
+    @property
+    def discarded_events_have_default_clock_snapshots(self):
+        return native_bt.stream_class_discarded_events_have_default_clock_snapshots(self._ptr)
+
+    @property
+    def supports_discarded_packets(self):
+        return native_bt.stream_class_supports_discarded_packets(self._ptr)
+
+    def _set_supports_discarded_packets(self, supports, with_cs):
+        utils._check_bool(supports)
+        utils._check_bool(with_cs)
+
+        if not supports and with_cs:
+            raise ValueError('cannot not support discarded packets, but have default clock snapshots')
+
+        native_bt.stream_class_set_supports_discarded_packets(self._ptr, supports, with_cs)
+
+    @property
+    def discarded_packets_have_default_clock_snapshots(self):
+        return native_bt.stream_class_discarded_packets_have_default_clock_snapshots(self._ptr)
 
     @property
     def id(self):
This page took 0.024509 seconds and 4 git commands to generate.