X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bindings%2Fpython%2Fbt2%2Fbt2%2Fvalue.py;h=d8b8332eecd87bd06942ac3a839b0a96c42b5eeb;hb=2f16a6a228d0059349b8566979c9d579e7e271b3;hp=5beccbcd197689666c8485c869f48470a85acd7f;hpb=877cb1e2f9ca0f090b474f06e6fc593cce61331f;p=babeltrace.git diff --git a/bindings/python/bt2/bt2/value.py b/bindings/python/bt2/bt2/value.py index 5beccbcd..d8b8332e 100644 --- a/bindings/python/bt2/bt2/value.py +++ b/bindings/python/bt2/bt2/value.py @@ -86,8 +86,8 @@ def create_value(value): class _Value(object._SharedObject, metaclass=abc.ABCMeta): - _get_ref = native_bt.value_get_ref - _put_ref = native_bt.value_put_ref + _get_ref = staticmethod(native_bt.value_get_ref) + _put_ref = staticmethod(native_bt.value_put_ref) def __eq__(self, other): if other is None: @@ -396,18 +396,18 @@ class _IntegerValue(_IntegralValue): class UnsignedIntegerValue(_IntegerValue): _check_int_range = staticmethod(utils._check_uint64) - _create_default_value = native_bt.value_unsigned_integer_create - _create_value = native_bt.value_unsigned_integer_create_init - _set_value = native_bt.value_unsigned_integer_set - _get_value = native_bt.value_unsigned_integer_get + _create_default_value = staticmethod(native_bt.value_unsigned_integer_create) + _create_value = staticmethod(native_bt.value_unsigned_integer_create_init) + _set_value = staticmethod(native_bt.value_unsigned_integer_set) + _get_value = staticmethod(native_bt.value_unsigned_integer_get) class SignedIntegerValue(_IntegerValue): _check_int_range = staticmethod(utils._check_int64) - _create_default_value = native_bt.value_signed_integer_create - _create_value = native_bt.value_signed_integer_create_init - _set_value = native_bt.value_signed_integer_set - _get_value = native_bt.value_signed_integer_get + _create_default_value = staticmethod(native_bt.value_signed_integer_create) + _create_value = staticmethod(native_bt.value_signed_integer_create_init) + _set_value = staticmethod(native_bt.value_signed_integer_set) + _get_value = staticmethod(native_bt.value_signed_integer_get) class RealValue(_RealValue):