_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_const_ptr_and_get_ref
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.clock_class_borrow_user_attributes_const
+ )
@property
def user_attributes(self):
- ptr = native_bt.clock_class_borrow_user_attributes(self._ptr)
+ ptr = self._borrow_user_attributes_ptr(self._ptr)
assert ptr is not None
return self._create_value_from_ptr_and_get_ref(ptr)
_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_ptr_and_get_ref
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.clock_class_borrow_user_attributes
+ )
def _user_attributes(self, user_attributes):
value = bt2_value.create_value(user_attributes)
_borrow_default_clock_class_ptr = staticmethod(
native_bt.stream_class_borrow_default_clock_class_const
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.stream_class_borrow_user_attributes_const
+ )
_event_class_cls = property(lambda _: bt2_event_class._EventClassConst)
_trace_class_cls = property(lambda _: bt2_trace_class._TraceClassConst)
@property
def user_attributes(self):
- ptr = native_bt.stream_class_borrow_user_attributes(self._ptr)
+ ptr = self._borrow_user_attributes_ptr(self._ptr)
assert ptr is not None
return bt2_value._create_from_ptr_and_get_ref(ptr)
_borrow_default_clock_class_ptr = staticmethod(
native_bt.stream_class_borrow_default_clock_class
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.stream_class_borrow_user_attributes
+ )
+
_event_class_cls = property(lambda s: bt2_event_class._EventClass)
_trace_class_cls = property(lambda s: bt2_trace_class._TraceClass)
_clock_class_cls = property(lambda s: bt2_clock_class._ClockClass)
_borrow_stream_class_ptr_by_id = staticmethod(
native_bt.trace_class_borrow_stream_class_by_id_const
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.trace_class_borrow_user_attributes_const
+ )
_stream_class_pycls = bt2_stream_class._StreamClassConst
_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_const_ptr_and_get_ref
@property
def user_attributes(self):
- ptr = native_bt.trace_class_borrow_user_attributes(self._ptr)
+ ptr = self._borrow_user_attributes_ptr(self._ptr)
assert ptr is not None
return self._create_value_from_ptr_and_get_ref(ptr)
_borrow_stream_class_ptr_by_id = staticmethod(
native_bt.trace_class_borrow_stream_class_by_id
)
+ _borrow_user_attributes_ptr = staticmethod(
+ native_bt.trace_class_borrow_user_attributes
+ )
_stream_class_pycls = bt2_stream_class._StreamClass
_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_ptr_and_get_ref