return ret;
}
-static
enum bt_component_status ctf_fs_iterator_init(struct bt_component *source,
struct bt_notification_iterator *it)
{
g_free(ctf_fs);
}
-static
void ctf_fs_destroy(struct bt_component *component)
{
void *data = bt_component_get_private_data(component);
goto end;
}
- ret = bt_component_set_destroy_cb(source, ctf_fs_destroy);
- if (ret != BT_COMPONENT_STATUS_OK) {
- goto error;
- }
-
ret = bt_component_set_private_data(source, ctf_fs);
if (ret != BT_COMPONENT_STATUS_OK) {
goto error;
}
-
- ret = bt_component_source_set_iterator_init_cb(source,
- ctf_fs_iterator_init);
- if (ret != BT_COMPONENT_STATUS_OK) {
- goto error;
- }
end:
return ret;
error: