lib: do not finalize a non-initialized notification iterator
[babeltrace.git] / include / babeltrace / graph / notification-iterator-internal.h
index 9fcab16af8d59a4117ce730ebe3e6ab8d44c2eeb..567c47387f8136075b5bf50530e7d649cb83551d 100644 (file)
@@ -34,6 +34,7 @@
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/graph/private-notification-iterator.h>
 #include <babeltrace/types.h>
+#include <stdbool.h>
 
 struct bt_port;
 
@@ -49,6 +50,9 @@ enum bt_notification_iterator_notif_type {
 };
 
 enum bt_notification_iterator_state {
+       /* Iterator is not initialized. */
+       BT_NOTIFICATION_ITERATOR_STATE_NON_INITIALIZED,
+
        /* Iterator is active, not at the end yet, and not finalized. */
        BT_NOTIFICATION_ITERATOR_STATE_ACTIVE,
 
This page took 0.0288620000000001 seconds and 4 git commands to generate.