bt_self_component_source *self_comp,
bt_self_component_source_configuration *config,
const bt_value *params, void *init_method_data)
bt_self_component_source *self_comp,
bt_self_component_source_configuration *config,
const bt_value *params, void *init_method_data)
status = bt_self_component_source_add_output_port(self_comp,
"out", NULL, NULL);
BT_ASSERT(status == BT_SELF_COMPONENT_ADD_PORT_STATUS_OK);
status = bt_self_component_source_add_output_port(self_comp,
"out", NULL, NULL);
BT_ASSERT(status == BT_SELF_COMPONENT_ADD_PORT_STATUS_OK);
bt_graph_simple_sink_component_consume_func_status consume_status,
bt_graph_run_once_status exp_run_once_status)
{
bt_graph_simple_sink_component_consume_func_status consume_status,
bt_graph_run_once_status exp_run_once_status)
{
- simple_init_func, simple_consume_func, simple_fini_func,
+ simple_INITIALIZE_func, simple_consume_func, simple_fini_func,
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_OK);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_OK);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_MEMORY_ERROR);
/* Test "consume" function status */
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_MEMORY_ERROR);
/* Test "consume" function status */
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_OK);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_OK,
BT_GRAPH_RUN_ONCE_STATUS_OK);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_ERROR,
BT_GRAPH_RUN_ONCE_STATUS_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_ERROR,
BT_GRAPH_RUN_ONCE_STATUS_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_MEMORY_ERROR,
BT_GRAPH_RUN_ONCE_STATUS_MEMORY_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_MEMORY_ERROR,
BT_GRAPH_RUN_ONCE_STATUS_MEMORY_ERROR);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_AGAIN,
BT_GRAPH_RUN_ONCE_STATUS_AGAIN);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_AGAIN,
BT_GRAPH_RUN_ONCE_STATUS_AGAIN);
test_simple_expect_run_once_status(
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_END,
BT_GRAPH_RUN_ONCE_STATUS_END);
BT_GRAPH_SIMPLE_SINK_COMPONENT_CONSUME_FUNC_STATUS_END,
BT_GRAPH_RUN_ONCE_STATUS_END);