X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fclock_class.py;h=27e05f17d5adc02e9f3793a7d4acf87df400b791;hp=4cdea396be2b77939470090b2308fa5d7c47568c;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/clock_class.py b/src/bindings/python/bt2/bt2/clock_class.py index 4cdea396..27e05f17 100644 --- 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): - _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 )