X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fcondition%2Fsession-rotation-internal.h;h=c723c6d6a74638ac22452b5db71204ddc8574b15;hb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;hp=0afac8dd0ed93b82a24492c736f3452d18ce0f32;hpb=c19092cd4d6af49c38322fc55ca91f17f03f32ac;p=lttng-tools.git diff --git a/include/lttng/condition/session-rotation-internal.h b/include/lttng/condition/session-rotation-internal.h index 0afac8dd0..c723c6d6a 100644 --- a/include/lttng/condition/session-rotation-internal.h +++ b/include/lttng/condition/session-rotation-internal.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2017 - Jérémie Galarneau + * Copyright (C) 2017 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LTTNG_CONDITION_SESSION_ROTATION_INTERNAL_H @@ -23,6 +13,7 @@ #include #include "common/buffer-view.h" #include +#include struct lttng_condition_session_rotation { struct lttng_condition parent; @@ -46,34 +37,28 @@ struct lttng_evaluation_session_rotation_comm { uint8_t has_location; } LTTNG_PACKED; -LTTNG_HIDDEN -ssize_t lttng_condition_session_rotation_ongoing_create_from_buffer( - const struct lttng_buffer_view *view, +ssize_t lttng_condition_session_rotation_ongoing_create_from_payload( + struct lttng_payload_view *view, struct lttng_condition **condition); -LTTNG_HIDDEN -ssize_t lttng_condition_session_rotation_completed_create_from_buffer( - const struct lttng_buffer_view *view, +ssize_t lttng_condition_session_rotation_completed_create_from_payload( + struct lttng_payload_view *view, struct lttng_condition **condition); -LTTNG_HIDDEN struct lttng_evaluation *lttng_evaluation_session_rotation_ongoing_create( uint64_t id); /* Ownership of location is transferred to the evaluation. */ -LTTNG_HIDDEN struct lttng_evaluation *lttng_evaluation_session_rotation_completed_create( uint64_t id, struct lttng_trace_archive_location *location); -LTTNG_HIDDEN -ssize_t lttng_evaluation_session_rotation_ongoing_create_from_buffer( - const struct lttng_buffer_view *view, +ssize_t lttng_evaluation_session_rotation_ongoing_create_from_payload( + struct lttng_payload_view *view, struct lttng_evaluation **evaluation); -LTTNG_HIDDEN -ssize_t lttng_evaluation_session_rotation_completed_create_from_buffer( - const struct lttng_buffer_view *view, +ssize_t lttng_evaluation_session_rotation_completed_create_from_payload( + struct lttng_payload_view *view, struct lttng_evaluation **evaluation); #endif /* LTTNG_CONDITION_SESSION_ROTATION_INTERNAL_H */