X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Ftrace.py;h=373555298c1059d147db4ca2996e529e227cfb7e;hp=1c56b034c400789beade4d3aff1f1fa55bcb2678;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/trace.py b/src/bindings/python/bt2/bt2/trace.py index 1c56b034..37355529 100644 --- a/src/bindings/python/bt2/bt2/trace.py +++ b/src/bindings/python/bt2/bt2/trace.py @@ -73,8 +73,14 @@ class _TraceEnvironment(_TraceEnvironmentConst, collections.abc.MutableMapping): class _TraceConst(object._SharedObject, collections.abc.Mapping): - _get_ref = staticmethod(native_bt.trace_get_ref) - _put_ref = staticmethod(native_bt.trace_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.trace_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.trace_put_ref(ptr) + _borrow_stream_ptr_by_id = staticmethod(native_bt.trace_borrow_stream_by_id_const) _borrow_stream_ptr_by_index = staticmethod( native_bt.trace_borrow_stream_by_index_const