X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fpacket.py;h=097614fe444900865d19cff39a13cdbc176cb282;hp=9325a7d6fc29cbb0168c9651761d72f1fa2d0642;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/packet.py b/src/bindings/python/bt2/bt2/packet.py index 9325a7d6..097614fe 100644 --- a/src/bindings/python/bt2/bt2/packet.py +++ b/src/bindings/python/bt2/bt2/packet.py @@ -13,8 +13,14 @@ def _bt2_stream(): class _PacketConst(object._SharedObject): - _get_ref = staticmethod(native_bt.packet_get_ref) - _put_ref = staticmethod(native_bt.packet_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.packet_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.packet_put_ref(ptr) + _borrow_stream_ptr = staticmethod(native_bt.packet_borrow_stream_const) _borrow_context_field_ptr = staticmethod( native_bt.packet_borrow_context_field_const