X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace_class.py;h=7fa8fa455be1046934545276b1163282157b43bb;hp=f66f385527934d5348e8e83ed9aa3730396db293;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/trace_class.py b/src/bindings/python/bt2/bt2/trace_class.py index f66f3855..7fa8fa45 100644 --- a/src/bindings/python/bt2/bt2/trace_class.py +++ b/src/bindings/python/bt2/bt2/trace_class.py @@ -24,8 +24,14 @@ def _trace_class_destruction_listener_from_native( class _TraceClassConst(object._SharedObject, collections.abc.Mapping): - _get_ref = staticmethod(native_bt.trace_class_get_ref) - _put_ref = staticmethod(native_bt.trace_class_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.trace_class_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.trace_class_put_ref(ptr) + _borrow_stream_class_ptr_by_index = staticmethod( native_bt.trace_class_borrow_stream_class_by_index_const )