actions: implement is_equal
[lttng-tools.git] / include / lttng / action / action.h
... / ...
CommitLineData
1/*
2 * Copyright (C) 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
11struct lttng_action;
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17enum lttng_action_type {
18 LTTNG_ACTION_TYPE_UNKNOWN = -1,
19 LTTNG_ACTION_TYPE_NOTIFY = 0,
20};
21
22/*
23 * Get the type of an action.
24 *
25 * Returns the type of an action on success, LTTNG_ACTION_TYPE_UNKNOWN on error.
26 */
27extern enum lttng_action_type lttng_action_get_type(
28 struct lttng_action *action);
29
30/*
31 * Destroy (frees) an action object.
32 */
33extern void lttng_action_destroy(struct lttng_action *action);
34
35#ifdef __cplusplus
36}
37#endif
38
39#endif /* LTTNG_ACTION_H */
This page took 0.021963 seconds and 4 git commands to generate.