X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Finterrupter.py;h=6026097cb78ce96b5afa32400f0f0c143f013c82;hp=39c22883d2d0304abfdc49b161e8af6efe2d142a;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/interrupter.py b/src/bindings/python/bt2/bt2/interrupter.py index 39c22883..6026097c 100644 --- a/src/bindings/python/bt2/bt2/interrupter.py +++ b/src/bindings/python/bt2/bt2/interrupter.py @@ -7,8 +7,13 @@ import bt2 class Interrupter(object._SharedObject): - _get_ref = staticmethod(native_bt.interrupter_get_ref) - _put_ref = staticmethod(native_bt.interrupter_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.interrupter_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.interrupter_put_ref(ptr) def __init__(self): ptr = native_bt.interrupter_create()