X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fbindings%2Fpython%2Fbt2%2Fbt2%2Fevent_class.py;h=408af70b729abdf48b6356a31c9d2513a36b3f95;hp=cbbd807cb4ab78941c6d854cc2709014c3b87eaf;hb=9dee90bdad3dac00a1caff5c9a1e58fb284ee19d;hpb=e57959f4c84bbec191771a1598e270bfc19b6c7f diff --git a/src/bindings/python/bt2/bt2/event_class.py b/src/bindings/python/bt2/bt2/event_class.py index cbbd807c..408af70b 100644 --- a/src/bindings/python/bt2/bt2/event_class.py +++ b/src/bindings/python/bt2/bt2/event_class.py @@ -32,8 +32,14 @@ class EventClassLogLevel: class _EventClassConst(object._SharedObject): - _get_ref = staticmethod(native_bt.event_class_get_ref) - _put_ref = staticmethod(native_bt.event_class_put_ref) + @staticmethod + def _get_ref(ptr): + native_bt.event_class_get_ref(ptr) + + @staticmethod + def _put_ref(ptr): + native_bt.event_class_put_ref(ptr) + _borrow_stream_class_ptr = staticmethod( native_bt.event_class_borrow_stream_class_const )