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
/
field_class.py
diff --git
a/src/bindings/python/bt2/bt2/field_class.py
b/src/bindings/python/bt2/bt2/field_class.py
index eed50140ea3edd878b7efc4205b1a9078263a0bb..2cd30c52205afbbc5a471eda8ff5e8eadf946b3c 100644
(file)
--- a/
src/bindings/python/bt2/bt2/field_class.py
+++ b/
src/bindings/python/bt2/bt2/field_class.py
@@
-45,8
+45,14
@@
class IntegerDisplayBase:
class _FieldClassConst(object._SharedObject):
class _FieldClassConst(object._SharedObject):
- _get_ref = staticmethod(native_bt.field_class_get_ref)
- _put_ref = staticmethod(native_bt.field_class_put_ref)
+ @staticmethod
+ def _get_ref(ptr):
+ native_bt.field_class_get_ref(ptr)
+
+ @staticmethod
+ def _put_ref(ptr):
+ native_bt.field_class_put_ref(ptr)
+
_borrow_user_attributes_ptr = staticmethod(
native_bt.field_class_borrow_user_attributes_const
)
_borrow_user_attributes_ptr = staticmethod(
native_bt.field_class_borrow_user_attributes_const
)
This page took
0.028235 seconds
and
4
git commands to generate.