Cleanup: rotation-thread: enforce conding standard following fix
[lttng-tools.git] / include / lttng / notification / notification-internal.hpp
index 9557c38b88cb738e17ead59d3cc0217ee80474ed..9837c359bf104408987d8dfec44be5ea9439c7b0 100644 (file)
@@ -8,16 +8,25 @@
 #ifndef LTTNG_NOTIFICATION_INTERNAL_H
 #define LTTNG_NOTIFICATION_INTERNAL_H
 
-#include <lttng/notification/notification.h>
 #include <common/macros.hpp>
-#include <stdint.h>
+#include <common/make-unique-wrapper.hpp>
+
+#include <lttng/notification/notification.h>
+
+#include <memory>
 #include <stdbool.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 struct lttng_payload;
 struct lttng_payload_view;
 
 struct lttng_notification {
+       using uptr = std::unique_ptr<
+               lttng_notification,
+               lttng::details::create_unique_class<lttng_notification,
+                                                   lttng_notification_destroy>::deleter>;
+
        struct lttng_trigger *trigger;
        struct lttng_evaluation *evaluation;
 };
This page took 0.023793 seconds and 4 git commands to generate.