struct bt_notification_iterator *source_it = NULL;
struct bt_notification_iterator *to_sink_it = NULL;
- source_it = bt_component_source_create_iterator(source);
+ source_it = bt_component_source_create_notification_iterator(source);
if (!source_it) {
fprintf(stderr, "Failed to instantiate source iterator. Aborting...\n");
ret = -1;
goto end;
}
- to_sink_it = bt_component_filter_create_iterator(trimmer);
+ to_sink_it = bt_component_filter_create_notification_iterator(trimmer);
if (!to_sink_it) {
fprintf(stderr, "Failed to instantiate trimmer iterator. Aborting...\n");
ret = -1;
* @returns Notification iterator instance
*/
extern
-struct bt_notification_iterator *bt_component_filter_create_iterator(
+struct bt_notification_iterator *bt_component_filter_create_notification_iterator(
struct bt_component *component);
extern
-struct bt_notification_iterator *bt_component_filter_create_iterator_with_init_method_data(
+struct bt_notification_iterator *bt_component_filter_create_notification_iterator_with_init_method_data(
struct bt_component *component, void *init_method_data);
/* Defaults to 1. */
* @returns Notification iterator instance
*/
extern
-struct bt_notification_iterator *bt_component_source_create_iterator(
+struct bt_notification_iterator *bt_component_source_create_notification_iterator(
struct bt_component *component);
extern
-struct bt_notification_iterator *bt_component_source_create_iterator_with_init_method_data(
+struct bt_notification_iterator *bt_component_source_create_notification_iterator_with_init_method_data(
struct bt_component *component, void *init_method_data);
#ifdef __cplusplus
return ret;
}
-struct bt_notification_iterator *bt_component_filter_create_iterator(
+struct bt_notification_iterator *bt_component_filter_create_notification_iterator(
struct bt_component *component)
{
return bt_component_create_iterator(component, NULL);
}
-struct bt_notification_iterator *bt_component_filter_create_iterator_with_init_method_data(
+struct bt_notification_iterator *bt_component_filter_create_notification_iterator_with_init_method_data(
struct bt_component *component, void *init_method_data)
{
return bt_component_create_iterator(component, init_method_data);
return source ? &source->parent : NULL;
}
-struct bt_notification_iterator *bt_component_source_create_iterator(
+struct bt_notification_iterator *bt_component_source_create_notification_iterator(
struct bt_component *component)
{
return bt_component_create_iterator(component, NULL);
}
-struct bt_notification_iterator *bt_component_source_create_iterator_with_init_method_data(
+struct bt_notification_iterator *bt_component_source_create_notification_iterator_with_init_method_data(
struct bt_component *component, void *init_method_data)
{
return bt_component_create_iterator(component, init_method_data);