X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Finteger_range_set.py;h=6803131470c06c180436d255e4491e71eb3c14aa;hp=79006f33c49cfe3edf0c05b2d056185c6c42453f;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/integer_range_set.py b/src/bindings/python/bt2/bt2/integer_range_set.py index 79006f33..68031314 100644 --- a/src/bindings/python/bt2/bt2/integer_range_set.py +++ b/src/bindings/python/bt2/bt2/integer_range_set.py @@ -135,8 +135,14 @@ class _IntegerRangeSet(_IntegerRangeSetConst, collections.abc.MutableSet): class _SignedIntegerRangeSetConst(_IntegerRangeSetConst): - _get_ref = staticmethod(native_bt.integer_range_set_signed_get_ref) - _put_ref = staticmethod(native_bt.integer_range_set_signed_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.integer_range_set_signed_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.integer_range_set_signed_put_ref(ptr) + _as_range_set_ptr = staticmethod( native_bt.integer_range_set_signed_as_range_set_const ) @@ -156,8 +162,14 @@ class SignedIntegerRangeSet(_SignedIntegerRangeSetConst, _IntegerRangeSet): class _UnsignedIntegerRangeSetConst(_IntegerRangeSetConst): - _get_ref = staticmethod(native_bt.integer_range_set_unsigned_get_ref) - _put_ref = staticmethod(native_bt.integer_range_set_unsigned_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.integer_range_set_unsigned_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.integer_range_set_unsigned_put_ref(ptr) + _as_range_set_ptr = staticmethod( native_bt.integer_range_set_unsigned_as_range_set_const )