Move to kernel style SPDX license identifiers
[lttng-tools.git] / include / lttng / condition / evaluation.h
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_EVALUATION_H
9 #define LTTNG_EVALUATION_H
10
11 #include <lttng/condition/condition.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 struct lttng_evaluation;
18
19 enum lttng_evaluation_status {
20 LTTNG_EVALUATION_STATUS_OK = 0,
21 LTTNG_EVALUATION_STATUS_ERROR = -1,
22 LTTNG_EVALUATION_STATUS_INVALID = -2,
23 LTTNG_EVALUATION_STATUS_UNKNOWN = -3,
24 LTTNG_EVALUATION_STATUS_UNSET = -4,
25 };
26
27 /*
28 * Get the condition type associated with an evaluation.
29 *
30 * Returns the type of a condition on success, LTTNG_CONDITION_TYPE_UNKNOWN on
31 * error.
32 */
33 extern enum lttng_condition_type lttng_evaluation_get_type(
34 const struct lttng_evaluation *evaluation);
35
36 /*
37 * Destroy (frees) an evaluation object.
38 */
39 extern void lttng_evaluation_destroy(struct lttng_evaluation *evaluation);
40
41 #ifdef __cplusplus
42 }
43 #endif
44
45 #endif /* LTTNG_EVALUATION_H */
This page took 0.029102 seconds and 4 git commands to generate.