Add frozen property to notification objects
[babeltrace.git] / lib / component / iterator.c
index 5e70e719463df9fdf5dcfea552a8431a02511a8d..ab2783d5b7d258a42bfe7c781ba4cffa67c4afee 100644 (file)
@@ -33,6 +33,7 @@
 #include <babeltrace/graph/component-class-internal.h>
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/graph/notification-iterator-internal.h>
+#include <babeltrace/graph/notification-internal.h>
 
 static
 void bt_notification_iterator_destroy(struct bt_object *obj)
@@ -226,6 +227,7 @@ bt_notification_iterator_next(struct bt_notification_iterator *iterator)
 
                BT_MOVE(iterator->current_notification,
                        next_return.notification);
+               bt_notification_freeze(iterator->current_notification);
        }
 
 end:
This page took 0.022598 seconds and 4 git commands to generate.