2 * Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_ACTION_STOP_SESSION_H
9 #define LTTNG_ACTION_STOP_SESSION_H
18 * Create a newly allocated stop-session action object.
20 * A stop session action object must have a session name set to be considered
21 * valid when used with a trigger object (lttng_trigger). A name can be set
22 * using `lttng_action_stop_session_set_session_name`.
24 * Returns a new action on success, NULL on failure. This action must be
25 * destroyed using lttng_action_destroy().
27 extern struct lttng_action
*lttng_action_stop_session_create(void);
30 * Set the session name of an lttng_action object of type
31 * LTTNG_ACTION_TYPE_STOP_SESSION.
33 extern enum lttng_action_status
lttng_action_stop_session_set_session_name(
34 struct lttng_action
*action
, const char *session_name
);
37 * Get the session name of an lttng_action object of type
38 * LTTNG_ACTION_TYPE_STOP_SESSION.
40 extern enum lttng_action_status
lttng_action_stop_session_get_session_name(
41 const struct lttng_action
*action
, const char **session_name
);
47 #endif /* LTTNG_ACTION_STOP_SESSION_H */
This page took 0.031613 seconds and 5 git commands to generate.