| 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 | |
| 16 | struct lttng_session; |
| 17 | |
| 18 | struct lttng_session_extended { |
| 19 | struct { |
| 20 | uint64_t value; |
| 21 | uint8_t is_set; |
| 22 | } LTTNG_PACKED creation_time; |
| 23 | } LTTNG_PACKED; |
| 24 | |
| 25 | using 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 */ |