Fix: liblttng-ctl comm: lttng_event is not packed
[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 #include <lttng/lttng-export.h>
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,
24 LTTNG_EVALUATION_STATUS_UNKNOWN = -3,
25 LTTNG_EVALUATION_STATUS_UNSET = -4,
26 };
27
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 */
34 LTTNG_EXPORT extern enum lttng_condition_type lttng_evaluation_get_type(
35 const struct lttng_evaluation *evaluation);
36
37 /*
38 * Destroy (frees) an evaluation object.
39 */
40 LTTNG_EXPORT extern void lttng_evaluation_destroy(struct lttng_evaluation *evaluation);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #endif /* LTTNG_EVALUATION_H */
This page took 0.030238 seconds and 4 git commands to generate.