projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename `init` methods to `initialize`
[babeltrace.git]
/
tests
/
lib
/
test_graph_topo.c
diff --git
a/tests/lib/test_graph_topo.c
b/tests/lib/test_graph_topo.c
index ae2da5aa72437074516ab215574ade6723de7734..fedbdd03a97b8f2a8875e15abfaa5ba78f24c91e 100644
(file)
--- a/
tests/lib/test_graph_topo.c
+++ b/
tests/lib/test_graph_topo.c
@@
-293,8
+293,9
@@
bt_component_class_port_connected_method_status sink_input_port_connected(
}
static
}
static
-bt_component_class_init_method_status src_init(
+bt_component_class_init
ialize
_method_status src_init(
bt_self_component_source *self_comp,
bt_self_component_source *self_comp,
+ bt_self_component_source_configuration *config,
const bt_value *params, void *init_method_data)
{
int ret;
const bt_value *params, void *init_method_data)
{
int ret;
@@
-302,12
+303,13
@@
bt_component_class_init_method_status src_init(
ret = bt_self_component_source_add_output_port(
self_comp, "out", NULL, NULL);
BT_ASSERT(ret == 0);
ret = bt_self_component_source_add_output_port(
self_comp, "out", NULL, NULL);
BT_ASSERT(ret == 0);
- return BT_COMPONENT_CLASS_INIT_METHOD_STATUS_OK;
+ return BT_COMPONENT_CLASS_INIT
IALIZE
_METHOD_STATUS_OK;
}
static
}
static
-bt_component_class_init_method_status sink_init(
+bt_component_class_init
ialize
_method_status sink_init(
bt_self_component_sink *self_comp,
bt_self_component_sink *self_comp,
+ bt_self_component_sink_configuration *config,
const bt_value *params, void *init_method_data)
{
int ret;
const bt_value *params, void *init_method_data)
{
int ret;
@@
-315,7
+317,7
@@
bt_component_class_init_method_status sink_init(
ret = bt_self_component_sink_add_input_port(self_comp,
"in", NULL, NULL);
BT_ASSERT(ret == 0);
ret = bt_self_component_sink_add_input_port(self_comp,
"in", NULL, NULL);
BT_ASSERT(ret == 0);
- return BT_COMPONENT_CLASS_INIT_METHOD_STATUS_OK;
+ return BT_COMPONENT_CLASS_INIT
IALIZE
_METHOD_STATUS_OK;
}
static
}
static
@@
-395,7
+397,7
@@
void init_test(void)
src_comp_class = bt_component_class_source_create(
"src", src_iter_next);
BT_ASSERT(src_comp_class);
src_comp_class = bt_component_class_source_create(
"src", src_iter_next);
BT_ASSERT(src_comp_class);
- ret = bt_component_class_source_set_init_method(
+ ret = bt_component_class_source_set_init
ialize
_method(
src_comp_class, src_init);
BT_ASSERT(ret == 0);
ret = bt_component_class_source_set_output_port_connected_method(
src_comp_class, src_init);
BT_ASSERT(ret == 0);
ret = bt_component_class_source_set_output_port_connected_method(
@@
-404,7
+406,7
@@
void init_test(void)
sink_comp_class = bt_component_class_sink_create("sink",
sink_consume);
BT_ASSERT(sink_comp_class);
sink_comp_class = bt_component_class_sink_create("sink",
sink_consume);
BT_ASSERT(sink_comp_class);
- ret = bt_component_class_sink_set_init_method(sink_comp_class,
+ ret = bt_component_class_sink_set_init
ialize
_method(sink_comp_class,
sink_init);
BT_ASSERT(ret == 0);
ret = bt_component_class_sink_set_input_port_connected_method(
sink_init);
BT_ASSERT(ret == 0);
ret = bt_component_class_sink_set_input_port_connected_method(
This page took
0.023735 seconds
and
4
git commands to generate.