X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fconnection.py;h=71066ac61e19b7443c7ff7d6c27fc976a2b53e78;hp=0f1fce65c8d5c2529b9bfd066b6fb494ce1dbdf6;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/connection.py b/src/bindings/python/bt2/bt2/connection.py index 0f1fce65..71066ac6 100644 --- a/src/bindings/python/bt2/bt2/connection.py +++ b/src/bindings/python/bt2/bt2/connection.py @@ -8,8 +8,13 @@ from bt2 import object as bt2_object class _ConnectionConst(bt2_object._SharedObject): - _get_ref = staticmethod(native_bt.connection_get_ref) - _put_ref = staticmethod(native_bt.connection_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.connection_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.connection_put_ref(ptr) @property def downstream_port(self):