From a4845e77b25b57a37bc1432fd6fae3d5ce23a329 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sun, 16 Jul 2017 23:15:22 -0400 Subject: [PATCH] lib: move bt_notification_iterator_next_return to component-class.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This type is the return type of a callback which is part of a component class definition (to define an implicit notification iterator class). Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- include/babeltrace/graph/component-class.h | 5 +++++ include/babeltrace/graph/notification-iterator.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/babeltrace/graph/component-class.h b/include/babeltrace/graph/component-class.h index c98088b1..a4d1e7a2 100644 --- a/include/babeltrace/graph/component-class.h +++ b/include/babeltrace/graph/component-class.h @@ -58,6 +58,11 @@ enum bt_component_class_type { BT_COMPONENT_CLASS_TYPE_FILTER = 2, }; +struct bt_notification_iterator_next_return { + struct bt_notification *notification; + enum bt_notification_iterator_status status; +}; + typedef enum bt_component_status (*bt_component_class_init_method)( struct bt_private_component *private_component, struct bt_value *params, void *init_method_data); diff --git a/include/babeltrace/graph/notification-iterator.h b/include/babeltrace/graph/notification-iterator.h index 8646d8e3..03b84d97 100644 --- a/include/babeltrace/graph/notification-iterator.h +++ b/include/babeltrace/graph/notification-iterator.h @@ -75,11 +75,6 @@ enum bt_notification_iterator_seek_origin { BT_NOTIFICATION_ITERATOR_SEEK_ORIGIN_EPOCH = 3, }; -struct bt_notification_iterator_next_return { - struct bt_notification *notification; - enum bt_notification_iterator_status status; -}; - /** * Get current notification at iterator's position. * -- 2.34.1