X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fstream.py;h=cd456e9e210eb984f66b8442428d55fee0af7ba9;hp=f1329623c2633c780c5bc06f2035c70ef6f6c0cf;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/stream.py b/src/bindings/python/bt2/bt2/stream.py index f1329623..cd456e9e 100644 --- a/src/bindings/python/bt2/bt2/stream.py +++ b/src/bindings/python/bt2/bt2/stream.py @@ -17,8 +17,14 @@ def _bt2_trace(): class _StreamConst(bt2_object._SharedObject): - _get_ref = staticmethod(native_bt.stream_get_ref) - _put_ref = staticmethod(native_bt.stream_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.stream_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.stream_put_ref(ptr) + _borrow_class_ptr = staticmethod(native_bt.stream_borrow_class_const) _borrow_user_attributes_ptr = staticmethod( native_bt.stream_borrow_user_attributes_const