From: Jérémie Galarneau Date: Sat, 18 Feb 2017 18:15:51 +0000 (-0500) Subject: Hide source iterator creation functions X-Git-Tag: v2.0.0-pre1~467 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=d84678929a168a8ce163251270d1791e8882b9a1 Hide source iterator creation functions Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/component/component-source-internal.h b/include/babeltrace/component/component-source-internal.h index 99b0f5bf..ac1b4c3e 100644 --- a/include/babeltrace/component/component-source-internal.h +++ b/include/babeltrace/component/component-source-internal.h @@ -59,4 +59,18 @@ BT_HIDDEN enum bt_component_status bt_component_source_validate( struct bt_component *component); +/** + * Create an iterator on a component instance. + * + * @param component Component instance + * @returns Notification iterator instance + */ +BT_HIDDEN +struct bt_notification_iterator *bt_component_source_create_notification_iterator( + struct bt_component *component); + +BT_HIDDEN +struct bt_notification_iterator *bt_component_source_create_notification_iterator_with_init_method_data( + struct bt_component *component, void *init_method_data); + #endif /* BABELTRACE_COMPONENT_SOURCE_INTERNAL_H */ diff --git a/lib/component/source.c b/lib/component/source.c index 0baa3f9b..adbf8ed7 100644 --- a/lib/component/source.c +++ b/lib/component/source.c @@ -102,12 +102,14 @@ error: goto end; } +BT_HIDDEN struct bt_notification_iterator *bt_component_source_create_notification_iterator( struct bt_component *component) { return bt_component_create_iterator(component, NULL); } +BT_HIDDEN struct bt_notification_iterator *bt_component_source_create_notification_iterator_with_init_method_data( struct bt_component *component, void *init_method_data) {