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>
12 #include <lttng/lttng-export.h>
18 struct lttng_evaluation
;
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,
29 * Get the condition type associated with an evaluation.
31 * Returns the type of a condition on success, LTTNG_CONDITION_TYPE_UNKNOWN on
34 LTTNG_EXPORT
extern enum lttng_condition_type
lttng_evaluation_get_type(
35 const struct lttng_evaluation
*evaluation
);
38 * Destroy (frees) an evaluation object.
40 LTTNG_EXPORT
extern void lttng_evaluation_destroy(struct lttng_evaluation
*evaluation
);
46 #endif /* LTTNG_EVALUATION_H */