projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: template borrow_user_attributes method in _TraceClassConst, _StreamClassConst...
[babeltrace.git]
/
src
/
bindings
/
python
/
bt2
/
bt2
/
clock_class.py
diff --git
a/src/bindings/python/bt2/bt2/clock_class.py
b/src/bindings/python/bt2/bt2/clock_class.py
index 3e5297bcc359375ab93a5ba79def235ac70c4657..71827b884006d13b40fbcca9f52cab4e4d599e47 100644
(file)
--- a/
src/bindings/python/bt2/bt2/clock_class.py
+++ b/
src/bindings/python/bt2/bt2/clock_class.py
@@
-54,10
+54,13
@@
class _ClockClassConst(object._SharedObject):
_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_const_ptr_and_get_ref
)
_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):
@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)
assert ptr is not None
return self._create_value_from_ptr_and_get_ref(ptr)
@@
-108,6
+111,9
@@
class _ClockClass(_ClockClassConst):
_create_value_from_ptr_and_get_ref = staticmethod(
bt2_value._create_from_ptr_and_get_ref
)
_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)
def _user_attributes(self, user_attributes):
value = bt2_value.create_value(user_attributes)
This page took
0.023624 seconds
and
4
git commands to generate.