2 * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ACTION_START_SESSION_INTERNAL_H
9 #define LTTNG_ACTION_START_SESSION_INTERNAL_H
11 #include <common/macros.hpp>
14 struct lttng_payload_view;
17 * Create a "start session" action from a payload view.
19 * On success, return the number of bytes consumed from `view`, and the created
20 * action in `*action`. On failure, return -1.
22 extern ssize_t lttng_action_start_session_create_from_payload(struct lttng_payload_view *view,
23 struct lttng_action **action);
25 #endif /* LTTNG_ACTION_START_SESSION_INTERNAL_H */