Add frozen property to notification objects
[babeltrace.git] / include / babeltrace / graph / notification-internal.h
index c5a542d776274b8d64067f5a78632c94f8c15f62..01eb59670cc3fb89802df7eb180c2b0f21c5b97e 100644 (file)
@@ -27,6 +27,7 @@
  * SOFTWARE.
  */
 
+#include <stdbool.h>
 #include <babeltrace/ref-internal.h>
 #include <babeltrace/babeltrace-internal.h>
 #include <babeltrace/object-internal.h>
@@ -44,6 +45,7 @@ struct bt_notification {
        struct bt_object base;
        enum bt_notification_type type;
        get_stream_func get_stream;
+       bool frozen;
 };
 
 BT_HIDDEN
@@ -51,6 +53,12 @@ void bt_notification_init(struct bt_notification *notification,
                enum bt_notification_type type,
                bt_object_release_func release);
 
+BT_HIDDEN
+static inline void bt_notification_freeze(struct bt_notification *notification)
+{
+       notification->frozen = true;
+}
+
 #ifdef __cplusplus
 }
 #endif
This page took 0.024805 seconds and 4 git commands to generate.