blob: 69be81c5ae2f2fac0efa4ec2eeaae3998556db4c (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file
*
* ODP version
*/
#ifndef ODP_VERSION_H_
#define ODP_VERSION_H_
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup odp_ver_abt_log_dbg ODP LOGGING / ABORT / VERSION / DEBUG
* @{
*/
/**
* ODP API generation version
*
* Introduction of major new features or changes that make
* very significant changes to the API. APIs with different
* versions are likely not backward compatible.
*/
#define ODP_VERSION_API_GENERATION 0
/**
* ODP API major version
*
* Introduction of major new features or changes. APIs with different major
* versions are likely not backward compatible.
*/
#define ODP_VERSION_API_MAJOR 9
/**
* ODP API minor version
*
* Minor version is incremented when introducing backward compatible changes
* to the API. For an API with common generation and major version, but with
* different minor numbers the two versions are backward compatible.
*/
#define ODP_VERSION_API_MINOR 0
/** @internal Version string expand */
#define ODP_VERSION_STR_EXPAND(x) #x
/** @internal Version to string */
#define ODP_VERSION_TO_STR(x) ODP_VERSION_STR_EXPAND(x)
/** @internal API version string */
#define ODP_VERSION_API_STR \
ODP_VERSION_TO_STR(ODP_VERSION_API_GENERATION) "." \
ODP_VERSION_TO_STR(ODP_VERSION_API_MAJOR) "." \
ODP_VERSION_TO_STR(ODP_VERSION_API_MINOR)
/**
* Returns ODP API version string
*/
static inline const char *odp_version_api_str(void)
{
return ODP_VERSION_API_STR;
}
/**
* Returns ODP implementation version string
*
* Every implementation of ODP may receive bug fixes independent of the version
* of the API changing, this function returns that indication string.
* @note This string is implementation specific.
* @sa odp_version_api_str()
*
* @return null terminated implementation specific version identifier string
*/
const char *odp_version_impl_str(void);
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif
|