- enum bt_component_status ret;
-
- ret = bt_component_set_private_data(component, &sink_value);
- if (ret != BT_COMPONENT_STATUS_OK) {
- return BT_COMPONENT_STATUS_ERROR;
- }
-
- ret = bt_component_sink_set_consume_cb(component, sink_run);
- if (ret != BT_COMPONENT_STATUS_OK) {
- return BT_COMPONENT_STATUS_ERROR;
- }
-