static bool is_rotation_condition(const struct lttng_condition *condition)
{
- enum lttng_condition_type type = lttng_condition_get_type(condition);
+ const lttng_condition_type type = lttng_condition_get_type(condition);
return type == LTTNG_CONDITION_TYPE_SESSION_ROTATION_ONGOING ||
type == LTTNG_CONDITION_TYPE_SESSION_ROTATION_COMPLETED;
static bool is_rotation_evaluation(const struct lttng_evaluation *evaluation)
{
- enum lttng_condition_type type = lttng_evaluation_get_type(evaluation);
+ const lttng_condition_type type = lttng_evaluation_get_type(evaluation);
return type == LTTNG_CONDITION_TYPE_SESSION_ROTATION_ONGOING ||
type == LTTNG_CONDITION_TYPE_SESSION_ROTATION_COMPLETED;
const char *session_name;
struct lttng_buffer_view name_view;
const struct lttng_condition_session_rotation_comm *condition_comm;
- struct lttng_payload_view condition_comm_view =
+ const lttng_payload_view condition_comm_view =
lttng_payload_view_from_view(src_view, 0, sizeof(*condition_comm));
if (!lttng_payload_view_is_valid(&condition_comm_view)) {
struct lttng_evaluation *evaluation = nullptr;
struct lttng_trace_archive_location *location = nullptr;
const struct lttng_evaluation_session_rotation_comm *comm;
- struct lttng_payload_view comm_view = lttng_payload_view_from_view(view, 0, sizeof(*comm));
+ const lttng_payload_view comm_view =
+ lttng_payload_view_from_view(view, 0, sizeof(*comm));
if (!lttng_payload_view_is_valid(&comm_view)) {
goto error;