- colander_data->user_notif = user_provided_data->notification;
-
- if (user_provided_data->notification_types) {
- notif_type = user_provided_data->notification_types;
- unsigned long count;
-
- while (*notif_type != BT_NOTIFICATION_TYPE_SENTINEL) {
- notif_type++;
- }
-
- count = notif_type - user_provided_data->notification_types + 1;
-
- colander_data->notif_types =
- g_new0(enum bt_notification_type, count);
- if (!colander_data->notif_types) {
- BT_LOGE_STR("Failed to allocate an array of notification types.");
- status = BT_COMPONENT_STATUS_NOMEM;
- goto end;
- }
-
- memcpy(colander_data->notif_types,
- user_provided_data->notification_types,
- count * sizeof(enum bt_notification_type));
- }
-
- status = bt_private_component_sink_add_input_private_port(
- priv_comp, "in", NULL, NULL);
- if (status != BT_COMPONENT_STATUS_OK) {
+ colander_data->msgs = user_provided_data->msgs;
+ colander_data->count_addr = user_provided_data->count_addr;
+ status = bt_self_component_sink_add_input_port(self_comp, "in",
+ NULL, NULL);
+ if (status != BT_SELF_COMPONENT_STATUS_OK) {