SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / include / lttng / action / stop-session.h
1 /*
2 * Copyright (C) 2019 EfficiOS, inc.
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, version 2.1 only,
6 * as published by the Free Software Foundation.
7 *
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11 * for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17
18 #ifndef LTTNG_ACTION_STOP_SESSION_H
19 #define LTTNG_ACTION_STOP_SESSION_H
20
21 struct lttng_action;
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /*
28 * Create a newly allocated stop-session action object.
29 *
30 * Returns a new action on success, NULL on failure. This action must be
31 * destroyed using lttng_action_destroy().
32 */
33 extern struct lttng_action *lttng_action_stop_session_create(void);
34
35 /*
36 * Set the session name of an lttng_action object of type
37 * LTTNG_ACTION_TYPE_STOP_SESSION.
38 */
39 extern enum lttng_action_status lttng_action_stop_session_set_session_name(
40 struct lttng_action *action, const char *session_name);
41
42 /*
43 * Get the session name of an lttng_action object of type
44 * LTTNG_ACTION_TYPE_STOP_SESSION.
45 */
46 extern enum lttng_action_status lttng_action_stop_session_get_session_name(
47 const struct lttng_action *action, const char **session_name);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* LTTNG_ACTION_STOP_SESSION_H */
This page took 0.043621 seconds and 5 git commands to generate.