clang-format: specify bitfield spacing to fit with the existing code
[lttng-tools.git] / include / lttng / condition / session-rotation-internal.hpp
CommitLineData
c19092cd 1/*
ab5be9fa 2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
c19092cd 3 *
ab5be9fa 4 * SPDX-License-Identifier: LGPL-2.1-only
c19092cd 5 *
c19092cd
JG
6 */
7
8#ifndef LTTNG_CONDITION_SESSION_ROTATION_INTERNAL_H
9#define LTTNG_CONDITION_SESSION_ROTATION_INTERNAL_H
10
11#include <lttng/condition/session-rotation.h>
c9e313bc
SM
12#include <lttng/condition/condition-internal.hpp>
13#include <lttng/condition/evaluation-internal.hpp>
14#include "common/buffer-view.hpp"
c19092cd 15#include <lttng/location.h>
c9e313bc 16#include <common/macros.hpp>
c19092cd
JG
17
18struct lttng_condition_session_rotation {
19 struct lttng_condition parent;
20 char *session_name;
21};
22
23struct lttng_condition_session_rotation_comm {
24 /* Length includes the trailing \0. */
25 uint32_t session_name_len;
26 char session_name[];
27} LTTNG_PACKED;
28
29struct lttng_evaluation_session_rotation {
30 struct lttng_evaluation parent;
31 uint64_t id;
32 struct lttng_trace_archive_location *location;
33};
34
35struct lttng_evaluation_session_rotation_comm {
36 uint64_t id;
37 uint8_t has_location;
38} LTTNG_PACKED;
39
c0a66c84
JG
40ssize_t lttng_condition_session_rotation_ongoing_create_from_payload(
41 struct lttng_payload_view *view,
c19092cd
JG
42 struct lttng_condition **condition);
43
c0a66c84
JG
44ssize_t lttng_condition_session_rotation_completed_create_from_payload(
45 struct lttng_payload_view *view,
c19092cd
JG
46 struct lttng_condition **condition);
47
c19092cd
JG
48struct lttng_evaluation *lttng_evaluation_session_rotation_ongoing_create(
49 uint64_t id);
50
51/* Ownership of location is transferred to the evaluation. */
c19092cd
JG
52struct lttng_evaluation *lttng_evaluation_session_rotation_completed_create(
53 uint64_t id,
54 struct lttng_trace_archive_location *location);
55
c0a66c84
JG
56ssize_t lttng_evaluation_session_rotation_ongoing_create_from_payload(
57 struct lttng_payload_view *view,
c19092cd
JG
58 struct lttng_evaluation **evaluation);
59
c0a66c84
JG
60ssize_t lttng_evaluation_session_rotation_completed_create_from_payload(
61 struct lttng_payload_view *view,
c19092cd
JG
62 struct lttng_evaluation **evaluation);
63
64#endif /* LTTNG_CONDITION_SESSION_ROTATION_INTERNAL_H */
This page took 0.045031 seconds and 4 git commands to generate.