| 1 | /* |
| 2 | * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-only |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #ifndef LTTNG_ACTION_ROTATE_SESSION_INTERNAL_H |
| 9 | #define LTTNG_ACTION_ROTATE_SESSION_INTERNAL_H |
| 10 | |
| 11 | #include <common/macros.h> |
| 12 | |
| 13 | struct lttng_action; |
| 14 | struct lttng_payload_view; |
| 15 | |
| 16 | /* |
| 17 | * Create a "rotate session" action from a payload view. |
| 18 | * |
| 19 | * On success, return the number of bytes consumed from `view`, and the created |
| 20 | * action in `*action`. On failure, return -1. |
| 21 | */ |
| 22 | LTTNG_HIDDEN |
| 23 | extern ssize_t lttng_action_rotate_session_create_from_payload( |
| 24 | struct lttng_payload_view *view, |
| 25 | struct lttng_action **action); |
| 26 | |
| 27 | #endif /* LTTNG_ACTION_ROTATE_SESSION_INTERNAL_H */ |