X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fvalue.py;h=dcc0a2f350c4d573c5ca87c7cd634b3da5b697ab;hp=04016dec1a404d69003558861cc4a5d47a982717;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/value.py b/src/bindings/python/bt2/bt2/value.py index 04016dec..dcc0a2f3 100644 --- a/src/bindings/python/bt2/bt2/value.py +++ b/src/bindings/python/bt2/bt2/value.py @@ -82,8 +82,14 @@ def create_value(value): class _ValueConst(object._SharedObject, metaclass=abc.ABCMeta): - _get_ref = staticmethod(native_bt.value_get_ref) - _put_ref = staticmethod(native_bt.value_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.value_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.value_put_ref(ptr) + _create_value_from_ptr = staticmethod(_create_from_const_ptr) _create_value_from_ptr_and_get_ref = staticmethod( _create_from_const_ptr_and_get_ref