projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python: make all _get_ref/_put_ref proper static methods
[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 4cdea396be2b77939470090b2308fa5d7c47568c..27e05f17d5adc02e9f3793a7d4acf87df400b791 100644
(file)
--- a/
src/bindings/python/bt2/bt2/clock_class.py
+++ b/
src/bindings/python/bt2/bt2/clock_class.py
@@
-31,8
+31,14
@@
class ClockClassOffset:
class _ClockClassConst(object._SharedObject):
class _ClockClassConst(object._SharedObject):
- _get_ref = staticmethod(native_bt.clock_class_get_ref)
- _put_ref = staticmethod(native_bt.clock_class_put_ref)
+ @staticmethod
+ def _get_ref(ptr):
+ native_bt.clock_class_get_ref(ptr)
+
+ @staticmethod
+ def _put_ref(ptr):
+ native_bt.clock_class_put_ref(ptr)
+
_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
)
This page took
0.023169 seconds
and
4
git commands to generate.