lib: pass config objects to component init methods
[babeltrace.git] / tests / lib / test_simple_sink.c
index f0599bb837c947ba54792bed278da62a273c1f70..2ea92a846d30a29be6a2c83902411d9a1fc3cb79 100644 (file)
@@ -60,6 +60,7 @@ void simple_fini_func(void *data)
 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)
 {
        bt_self_component_add_port_status status;
@@ -94,7 +95,7 @@ bt_graph *create_graph_with_source(const bt_port_output **out_port)
        set_method_status = bt_component_class_source_set_init_method(
                src_comp_cls, src_init);
        BT_ASSERT(set_method_status == BT_COMPONENT_CLASS_SET_METHOD_STATUS_OK);
-       graph = bt_graph_create();
+       graph = bt_graph_create(0);
        BT_ASSERT(graph);
        add_comp_status = bt_graph_add_source_component(graph, src_comp_cls,
                "src", NULL, BT_LOGGING_LEVEL_NONE, &src_comp);
This page took 0.024093 seconds and 4 git commands to generate.