aboutsummaryrefslogtreecommitdiff
path: root/include/odp/api/spec/support.h
blob: 42a9621b51379ca637ef28abafaafe86b9053a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Copyright (c) 2017-2018, Linaro Limited
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

/**
 * @file
 *
 * ODP support API
 */

#ifndef ODP_API_SPEC_SUPPORT_H_
#define ODP_API_SPEC_SUPPORT_H_
#include <odp/visibility_begin.h>

#ifdef __cplusplus
extern "C" {
#endif

/** @defgroup odp_support ODP support
 *  Common API
 *  @{
 */

/**
 * ODP support support
 *
 * Support levels are specified in the relative order, where ODP_SUPPORT_NO is
 * the lowest level. E.g. if the examined support level is greater than
 * ODP_SUPPORT_NO, the feature is supported in some form.
 */
typedef enum odp_support_t {
	/**
	 * Feature is not supported
	 */
	ODP_SUPPORT_NO = 0,
	/**
	 * Feature is supported
	 */
	ODP_SUPPORT_YES,
	/**
	 * Feature is supported and preferred
	 */
	ODP_SUPPORT_PREFERRED
} odp_support_t;

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#include <odp/visibility_end.h>
#endif