Make it possible to use this unique_ptr elsewhere.
Change-Id: I30141efac45d842f4bc3414ca03fffb2e4ba5cce
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#define LTTNG_SESSION_INTERNAL_H
#include <common/macros.hpp>
+#include <common/make-unique-wrapper.hpp>
#include <lttng/constant.h>
+struct lttng_session;
+
struct lttng_session_extended {
struct {
uint64_t value;
} LTTNG_PACKED creation_time;
} LTTNG_PACKED;
+using lttng_session_uptr =
+ std::unique_ptr<lttng_session[],
+ lttng::memory::create_deleter_class<lttng_session, lttng::free>::deleter>;
+
#endif /* LTTNG_SESSION_INTERNAL_H */
#include <common/make-unique-wrapper.hpp>
#include <lttng/lttng.h>
+#include <lttng/session-internal.hpp>
#include <iterator>
#include <memory>
{
}
- std::unique_ptr<lttng_session[],
- lttng::memory::create_deleter_class<lttng_session, lttng::free>::deleter>
- _array = nullptr;
+ lttng_session_uptr _array = nullptr;
std::size_t _count = 0;
};