2 * Copyright (C) 2019 EfficiOS, inc.
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.
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
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
18 #ifndef LTTNG_ACTION_SNAPSHOT_SESSION_H
19 #define LTTNG_ACTION_SNAPSHOT_SESSION_H
26 struct lttng_snapshot_output
;
29 * Create a newly allocated snapshot-session action object.
31 * Returns a new action on success, NULL on failure. This action must be
32 * destroyed using lttng_action_destroy().
34 extern struct lttng_action
*lttng_action_snapshot_session_create(void);
37 * Set the session name of an lttng_action object of type
38 * LTTNG_ACTION_TYPE_SNAPSHOT_SESSION.
40 extern enum lttng_action_status
lttng_action_snapshot_session_set_session_name(
41 struct lttng_action
*action
, const char *session_name
);
44 * Get the session name of an lttng_action object of type
45 * LTTNG_ACTION_TYPE_SNAPSHOT_SESSION.
47 extern enum lttng_action_status
lttng_action_snapshot_session_get_session_name(
48 const struct lttng_action
*action
, const char **session_name
);
51 * Set an explicit snapshot output for this snapshot session action.
53 * The given snapshot output will be used instead of the session's
54 * default snapshot output.
56 * This function takes ownership of the given snapshot output.
58 extern enum lttng_action_status
lttng_action_snapshot_session_set_output(
59 struct lttng_action
*action
,
60 struct lttng_snapshot_output
*output
);
63 * Get the explicit snapshot output for this snapshot session action.
65 extern enum lttng_action_status
lttng_action_snapshot_session_get_output_const(
66 const struct lttng_action
*action
,
67 const struct lttng_snapshot_output
**output
);
73 #endif /* LTTNG_ACTION_SNAPSHOT_SESSION_H */
This page took 0.032406 seconds and 5 git commands to generate.