From: Philippe Proulx Date: Mon, 17 Jul 2017 03:15:22 +0000 (-0400) Subject: lib: move bt_notification_iterator_next_return to component-class.h X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a22f4171f56f93b525c294e47252d652427144c7;p=deliverable%2Fbabeltrace.git lib: move bt_notification_iterator_next_return to component-class.h 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 --- diff --git a/include/babeltrace/graph/component-class.h b/include/babeltrace/graph/component-class.h index c98088b10..a4d1e7a26 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 8646d8e39..03b84d977 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. *