2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
11 #include <lttng/lttng-export.h>
19 enum lttng_action_type
{
20 LTTNG_ACTION_TYPE_UNKNOWN
= -1,
21 LTTNG_ACTION_TYPE_NOTIFY
= 0,
22 LTTNG_ACTION_TYPE_START_SESSION
= 1,
23 LTTNG_ACTION_TYPE_STOP_SESSION
= 2,
24 LTTNG_ACTION_TYPE_ROTATE_SESSION
= 3,
25 LTTNG_ACTION_TYPE_SNAPSHOT_SESSION
= 4,
26 LTTNG_ACTION_TYPE_LIST
= 5,
29 enum lttng_action_status
{
30 LTTNG_ACTION_STATUS_OK
= 0,
31 LTTNG_ACTION_STATUS_ERROR
= -1,
32 LTTNG_ACTION_STATUS_UNKNOWN
= -2,
33 LTTNG_ACTION_STATUS_INVALID
= -3,
34 LTTNG_ACTION_STATUS_UNSET
= -4,
38 * Get the type of an action.
40 * Returns the type of an action on success, LTTNG_ACTION_TYPE_UNKNOWN on error.
42 LTTNG_EXPORT
extern enum lttng_action_type
lttng_action_get_type(
43 const struct lttng_action
*action
);
46 * Destroy (frees) an action object.
48 LTTNG_EXPORT
extern void lttng_action_destroy(struct lttng_action
*action
);
54 #endif /* LTTNG_ACTION_H */