Use the same values for different status codes
[babeltrace.git] / include / babeltrace / graph / notification-iterator.h
index 8cf2a0626c38484e481fcfd0aa81abacdda6b2d1..d8554316794a9608e1244bdbbef4fa68940f9ad5 100644 (file)
@@ -40,18 +40,20 @@ struct bt_notification_iterator;
  * Status code. Errors are always negative.
  */
 enum bt_notification_iterator_status {
+       /** Try again. */
+       BT_NOTIFICATION_ITERATOR_STATUS_AGAIN = 11,
        /** No more notifications to be delivered. */
        BT_NOTIFICATION_ITERATOR_STATUS_END = 1,
        /** No error, okay. */
        BT_NOTIFICATION_ITERATOR_STATUS_OK = 0,
        /** Invalid arguments. */
-       BT_NOTIFICATION_ITERATOR_STATUS_INVAL = -1,
+       BT_NOTIFICATION_ITERATOR_STATUS_INVALID = -22,
        /** General error. */
-       BT_NOTIFICATION_ITERATOR_STATUS_ERROR = -2,
+       BT_NOTIFICATION_ITERATOR_STATUS_ERROR = -1,
        /** Out of memory. */
-       BT_NOTIFICATION_ITERATOR_STATUS_NOMEM = -3,
+       BT_NOTIFICATION_ITERATOR_STATUS_NOMEM = -12,
        /** Unsupported iterator feature. */
-       BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED = -4,
+       BT_NOTIFICATION_ITERATOR_STATUS_UNSUPPORTED = -2,
 
 };
 
This page took 0.025526 seconds and 4 git commands to generate.