Move lttng_session unique_ptr to lttng/session-internal.hpp
[lttng-tools.git] / include / lttng / session-internal.hpp
... / ...
CommitLineData
1/*
2 * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_SESSION_INTERNAL_H
9#define LTTNG_SESSION_INTERNAL_H
10
11#include <common/macros.hpp>
12#include <common/make-unique-wrapper.hpp>
13
14#include <lttng/constant.h>
15
16struct lttng_session;
17
18struct lttng_session_extended {
19 struct {
20 uint64_t value;
21 uint8_t is_set;
22 } LTTNG_PACKED creation_time;
23} LTTNG_PACKED;
24
25using lttng_session_uptr =
26 std::unique_ptr<lttng_session[],
27 lttng::memory::create_deleter_class<lttng_session, lttng::free>::deleter>;
28
29#endif /* LTTNG_SESSION_INTERNAL_H */
This page took 0.024353 seconds and 4 git commands to generate.