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> | |
4bd69c5f | 12 | #include <lttng/lttng-export.h> |
a58c490f JG |
13 | |
14 | #ifdef __cplusplus | |
15 | extern "C" { | |
16 | #endif | |
17 | ||
18 | struct lttng_evaluation; | |
19 | ||
20 | enum lttng_evaluation_status { | |
21 | LTTNG_EVALUATION_STATUS_OK = 0, | |
22 | LTTNG_EVALUATION_STATUS_ERROR = -1, | |
23 | LTTNG_EVALUATION_STATUS_INVALID = -2, | |
9916524c JG |
24 | LTTNG_EVALUATION_STATUS_UNKNOWN = -3, |
25 | LTTNG_EVALUATION_STATUS_UNSET = -4, | |
a58c490f JG |
26 | }; |
27 | ||
68115b31 JG |
28 | /* |
29 | * Get the condition type associated with an evaluation. | |
30 | * | |
31 | * Returns the type of a condition on success, LTTNG_CONDITION_TYPE_UNKNOWN on | |
32 | * error. | |
33 | */ | |
4bd69c5f | 34 | LTTNG_EXPORT extern enum lttng_condition_type lttng_evaluation_get_type( |
a58c490f JG |
35 | const struct lttng_evaluation *evaluation); |
36 | ||
68115b31 JG |
37 | /* |
38 | * Destroy (frees) an evaluation object. | |
39 | */ | |
4bd69c5f | 40 | LTTNG_EXPORT extern void lttng_evaluation_destroy(struct lttng_evaluation *evaluation); |
a58c490f JG |
41 | |
42 | #ifdef __cplusplus | |
43 | } | |
44 | #endif | |
45 | ||
46 | #endif /* LTTNG_EVALUATION_H */ |