Commit | Line | Data |
---|---|---|
a58c490f | 1 | /* |
ab5be9fa | 2 | * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
a58c490f | 3 | * |
ab5be9fa | 4 | * SPDX-License-Identifier: LGPL-2.1-only |
a58c490f | 5 | * |
a58c490f JG |
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, | |
9916524c JG |
23 | LTTNG_EVALUATION_STATUS_UNKNOWN = -3, |
24 | LTTNG_EVALUATION_STATUS_UNSET = -4, | |
a58c490f JG |
25 | }; |
26 | ||
68115b31 JG |
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 | */ | |
a58c490f JG |
33 | extern enum lttng_condition_type lttng_evaluation_get_type( |
34 | const struct lttng_evaluation *evaluation); | |
35 | ||
68115b31 JG |
36 | /* |
37 | * Destroy (frees) an evaluation object. | |
38 | */ | |
a58c490f JG |
39 | extern void lttng_evaluation_destroy(struct lttng_evaluation *evaluation); |
40 | ||
41 | #ifdef __cplusplus | |
42 | } | |
43 | #endif | |
44 | ||
45 | #endif /* LTTNG_EVALUATION_H */ |