DPDK  22.11.7
rte_version.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4 
10 #ifndef _RTE_VERSION_H_
11 #define _RTE_VERSION_H_
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include <string.h>
18 #include <stdio.h>
19 #include <rte_compat.h>
20 
24 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
25 
29 #define RTE_VERSION RTE_VERSION_NUM( \
30  RTE_VER_YEAR, \
31  RTE_VER_MONTH, \
32  RTE_VER_MINOR, \
33  RTE_VER_RELEASE)
34 
38 __rte_experimental
39 const char *rte_version_prefix(void);
40 
44 __rte_experimental
45 unsigned int rte_version_year(void);
46 
50 __rte_experimental
51 unsigned int rte_version_month(void);
52 
56 __rte_experimental
57 unsigned int rte_version_minor(void);
58 
62 __rte_experimental
63 const char *rte_version_suffix(void);
64 
68 __rte_experimental
69 unsigned int rte_version_release(void);
70 
76 const char *rte_version(void);
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* RTE_VERSION_H */
rte_version_release
__rte_experimental unsigned int rte_version_release(void)
rte_version_suffix
__rte_experimental const char * rte_version_suffix(void)
rte_version_month
__rte_experimental unsigned int rte_version_month(void)
rte_version_year
__rte_experimental unsigned int rte_version_year(void)
rte_version
const char * rte_version(void)
rte_version_minor
__rte_experimental unsigned int rte_version_minor(void)
rte_version_prefix
__rte_experimental const char * rte_version_prefix(void)