lib: pass config objects to component init methods
[babeltrace.git] / tests / lib / test_trace_ir_ref.c
index 7eeef185a76b2261eab639ffce4cd806e074334b..1d565ebdef1c26b1f592d03bfd00863224786db9 100644 (file)
@@ -411,6 +411,7 @@ static void test_example_scenario(bt_self_component_source *self_comp)
 static
 bt_component_class_init_method_status src_init(
        bt_self_component_source *self_comp,
+       bt_self_component_source_configuration *config,
        const bt_value *params, void *init_method_data)
 {
        test_example_scenario(self_comp);
@@ -436,7 +437,7 @@ static void test_example_scenario_in_graph(void)
        BT_ASSERT(comp_cls);
        ret = bt_component_class_source_set_init_method(comp_cls, src_init);
        BT_ASSERT(ret == 0);
-       graph = bt_graph_create();
+       graph = bt_graph_create(0);
        ret = bt_graph_add_source_component(graph, comp_cls, "src-comp",
                NULL, BT_LOGGING_LEVEL_NONE, NULL);
        BT_ASSERT(ret == 0);
This page took 0.024161 seconds and 4 git commands to generate.