X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fstream_class.py;h=ccf3a84f8589fae3dc199aaff05922f02e50938f;hb=8c2367b884576ed438bc2e06cfc9205b2436838d;hp=e94c3b2297d3d23fc74a05fc4fa72ff417b7242c;hpb=fbbe93021d7cd3793003911931bb3abd5e69596a;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/stream_class.py b/bindings/python/bt2/bt2/stream_class.py index e94c3b22..ccf3a84f 100644 --- a/bindings/python/bt2/bt2/stream_class.py +++ b/bindings/python/bt2/bt2/stream_class.py @@ -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)