bt2: Adapt test_trace.py and make it pass
[babeltrace.git] / bindings / python / bt2 / bt2 / stream_class.py
index e94c3b2297d3d23fc74a05fc4fa72ff417b7242c..ccf3a84f8589fae3dc199aaff05922f02e50938f 100644 (file)
@@ -121,6 +121,16 @@ class StreamClass(object._SharedObject, collections.abc.Mapping):
         ret = native_bt.stream_class_set_name(self._ptr, name)
         utils._handle_ret(ret, "cannot set stream class object's name")
 
+    @property
+    def assigns_automatic_stream_id(self):
+        return native_bt.stream_class_assigns_automatic_stream_id(self._ptr)
+
+    def _assigns_automatic_stream_id(self, auto_id):
+        utils._check_bool(auto_id)
+        return native_bt.stream_class_set_assigns_automatic_stream_id(self._ptr, auto_id)
+
+    _assigns_automatic_stream_id = property(fset=_assigns_automatic_stream_id)
+
     @property
     def id(self):
         id = native_bt.stream_class_get_id(self._ptr)
This page took 0.023413 seconds and 4 git commands to generate.