python: make all _get_ref/_put_ref proper static methods
[babeltrace.git] / src / bindings / python / bt2 / bt2 / message.py
index 5039d923b59208c1b057f78256ec85083f99e96e..e2d30a452762c484249855996728a066aa73f07e 100644 (file)
@@ -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):
This page took 0.024214 seconds and 4 git commands to generate.