scope-exit: Clarify scope_exit noexcept requirement
[lttng-tools.git] / include / lttng / session-internal.hpp
index 7f73b9610dd3adf3c54539e90172f65a19e0bae5..61e65981c6e280e74b2789a1f80e2e453cf1de16 100644 (file)
@@ -8,8 +8,12 @@
 #ifndef LTTNG_SESSION_INTERNAL_H
 #define LTTNG_SESSION_INTERNAL_H
 
-#include <lttng/constant.h>
 #include <common/macros.hpp>
+#include <common/make-unique-wrapper.hpp>
+
+#include <lttng/constant.h>
+
+struct lttng_session;
 
 struct lttng_session_extended {
        struct {
@@ -18,4 +22,8 @@ struct lttng_session_extended {
        } LTTNG_PACKED creation_time;
 } LTTNG_PACKED;
 
+using lttng_session_uptr = std::unique_ptr<
+       lttng_session[],
+       lttng::memory::create_deleter_class<lttng_session, lttng::memory::free>::deleter>;
+
 #endif /* LTTNG_SESSION_INTERNAL_H */
This page took 0.026996 seconds and 4 git commands to generate.