X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fmessage.py;h=e2d30a452762c484249855996728a066aa73f07e;hp=5039d923b59208c1b057f78256ec85083f99e96e;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/message.py b/src/bindings/python/bt2/bt2/message.py index 5039d923..e2d30a45 100644 --- a/src/bindings/python/bt2/bt2/message.py +++ b/src/bindings/python/bt2/bt2/message.py @@ -15,8 +15,13 @@ def _create_from_ptr(ptr): class _MessageConst(object._SharedObject): - _get_ref = staticmethod(native_bt.message_get_ref) - _put_ref = staticmethod(native_bt.message_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.message_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.message_put_ref(ptr) @staticmethod def _check_has_default_clock_class(clock_class):