Move to kernel style SPDX license identifiers
[lttng-tools.git] / include / lttng / condition / evaluation.h
CommitLineData
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
14extern "C" {
15#endif
16
17struct lttng_evaluation;
18
19enum 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
33extern 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
39extern void lttng_evaluation_destroy(struct lttng_evaluation *evaluation);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif /* LTTNG_EVALUATION_H */
This page took 0.035904 seconds and 5 git commands to generate.