lib: move bt_notification_iterator_next_return to component-class.h
[babeltrace.git] / include / babeltrace / graph / notification-iterator.h
index 753ff6ec2aaf5fad8fe4fc4a04ee538030b79744..03b84d97762cc197871bf0f2b14fc0c9d5768159 100644 (file)
@@ -40,7 +40,9 @@ struct bt_notification_iterator;
  * Status code. Errors are always negative.
  */
 enum bt_notification_iterator_status {
-       /** Try again. */
+       /** Canceled. */
+       BT_NOTIFICATION_ITERATOR_STATUS_CANCELED = 125,
+       /** No notifications available for now. Try again later. */
        BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11,
        /** No more notifications to be delivered. */
        BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
@@ -73,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.024846 seconds and 4 git commands to generate.