LTTng control library C API
Loading...
Searching...
No Matches
action.h
1/*
2 * SPDX-FileCopyrightText: 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_ACTION_H
9#define LTTNG_ACTION_H
10
11#include <lttng/lttng-export.h>
12
13struct lttng_action;
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
53
61
64
65 /* Unused for the moment */
66 LTTNG_ACTION_STATUS_UNKNOWN = -2,
67
70
73};
74
88LTTNG_EXPORT extern enum lttng_action_type lttng_action_get_type(const struct lttng_action *action);
89
101LTTNG_EXPORT extern void lttng_action_destroy(struct lttng_action *action);
102
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif /* LTTNG_ACTION_H */
lttng_action_type
Trigger action type.
Definition action.h:31
enum lttng_action_type lttng_action_get_type(const struct lttng_action *action)
Returns the type of the trigger action action.
void lttng_action_destroy(struct lttng_action *action)
Destroys the trigger action action.
lttng_action_status
Return type of trigger action API functions.
Definition action.h:58
@ LTTNG_ACTION_TYPE_NOTIFY
Notify.
Definition action.h:33
@ LTTNG_ACTION_TYPE_UNKNOWN
Unknown (error).
Definition action.h:51
@ LTTNG_ACTION_TYPE_START_SESSION
Start recording session.
Definition action.h:36
@ LTTNG_ACTION_TYPE_SNAPSHOT_SESSION
Take recording session snapshot.
Definition action.h:45
@ LTTNG_ACTION_TYPE_STOP_SESSION
Stop recording session.
Definition action.h:39
@ LTTNG_ACTION_TYPE_ROTATE_SESSION
Rotate recording session snapshot.
Definition action.h:42
@ LTTNG_ACTION_TYPE_LIST
Trigger action list.
Definition action.h:48
@ LTTNG_ACTION_STATUS_INVALID
Unsatisfied precondition.
Definition action.h:69
@ LTTNG_ACTION_STATUS_UNSET
Not set.
Definition action.h:72
@ LTTNG_ACTION_STATUS_OK
Success.
Definition action.h:60
@ LTTNG_ACTION_STATUS_ERROR
Error.
Definition action.h:63