2 * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ACTION_SNAPSHOT_SESSION_INTERNAL_H
9 #define LTTNG_ACTION_SNAPSHOT_SESSION_INTERNAL_H
11 #include <common/macros.hpp>
13 #include <sys/types.h>
16 struct lttng_payload_view;
19 * Create a "snapshot session" action from a payload view.
21 * On success, return the number of bytes consumed from `view`, and the created
22 * action in `*action`. On failure, return -1.
24 extern ssize_t lttng_action_snapshot_session_create_from_payload(struct lttng_payload_view *view,
25 struct lttng_action **action);
27 #endif /* LTTNG_ACTION_SNAPSHOT_SESSION_INTERNAL_H */