bt2: pass custom Python object to Python component's __init__()
[babeltrace.git] / tests / bindings / python / bt2 / utils.py
index fb4003a3e76a452ce6a5e121a26083bae67e330f..1f9a6c2768ae2e0635d55c136425b5250ac8e030 100644 (file)
@@ -26,14 +26,11 @@ import bt2
 
 def run_in_component_init(func):
     class MySink(bt2._UserSinkComponent):
-        def __init__(self, params):
+        def __init__(self, params, obj):
             nonlocal res_bound
             res_bound = func(self)
 
-        def _consume(self):
-            pass
-
-        def _graph_is_configured(self):
+        def _user_consume(self):
             pass
 
     g = bt2.Graph()
This page took 0.023337 seconds and 4 git commands to generate.