lib: move bt_notification_iterator_next_return to component-class.h
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 Jul 2017 03:15:22 +0000 (23:15 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Aug 2017 20:04:09 +0000 (16:04 -0400)
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 <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/graph/component-class.h
include/babeltrace/graph/notification-iterator.h

index c98088b1069dc7e152146195d9633c70b6166323..a4d1e7a26569878f0964632e1cc6ee9601e9c234 100644 (file)
@@ -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);
index 8646d8e39439dafaf7ac4f84b73537db24e12473..03b84d97762cc197871bf0f2b14fc0c9d5768159 100644 (file)
@@ -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.
  *
This page took 0.025825 seconds and 4 git commands to generate.