2 * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_EVALUATION_H
9 #define LTTNG_EVALUATION_H
11 #include <lttng/condition/condition.h>
17 struct lttng_evaluation
;
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,
28 * Get the condition type associated with an evaluation.
30 * Returns the type of a condition on success, LTTNG_CONDITION_TYPE_UNKNOWN on
33 extern enum lttng_condition_type
lttng_evaluation_get_type(
34 const struct lttng_evaluation
*evaluation
);
37 * Destroy (frees) an evaluation object.
39 extern void lttng_evaluation_destroy(struct lttng_evaluation
*evaluation
);
45 #endif /* LTTNG_EVALUATION_H */