X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Flib%2Ftest_trace_ir_ref.c;h=ab1b920ee599af796934fde3d7542b92384781c3;hb=21a9f056fd7d86d18aa7a1700c7f47d93eb1adeb;hp=33591800bc381a3085b49f5a38f568b8d773bff3;hpb=056deb59eb33e87c06c0067907768ab08aff74a2;p=babeltrace.git diff --git a/tests/lib/test_trace_ir_ref.c b/tests/lib/test_trace_ir_ref.c index 33591800..ab1b920e 100644 --- a/tests/lib/test_trace_ir_ref.c +++ b/tests/lib/test_trace_ir_ref.c @@ -409,12 +409,13 @@ static void test_example_scenario(bt_self_component_source *self_comp) } static -bt_component_class_init_method_status src_init( +bt_component_class_initialize_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); - return BT_COMPONENT_CLASS_INIT_METHOD_STATUS_OK; + return BT_COMPONENT_CLASS_INITIALIZE_METHOD_STATUS_OK; } static @@ -434,7 +435,7 @@ static void test_example_scenario_in_graph(void) comp_cls = bt_component_class_source_create("src", src_iter_next); BT_ASSERT(comp_cls); - ret = bt_component_class_source_set_init_method(comp_cls, src_init); + ret = bt_component_class_source_set_initialize_method(comp_cls, src_init); BT_ASSERT(ret == 0); graph = bt_graph_create(0); ret = bt_graph_add_source_component(graph, comp_cls, "src-comp",