From d84678929a168a8ce163251270d1791e8882b9a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 18 Feb 2017 13:15:51 -0500 Subject: [PATCH] Hide source iterator creation functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- .../component/component-source-internal.h | 14 ++++++++++++++ lib/component/source.c | 2 ++ 2 files changed, 16 insertions(+) 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) { -- 2.34.1