DPDK  21.08.0
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 <stdint.h>
18 #include <string.h>
19 #include <stdio.h>
20 #include <rte_common.h>
21 #include <rte_compat.h>
22 
26 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
27 
31 #define RTE_VERSION RTE_VERSION_NUM( \
32  RTE_VER_YEAR, \
33  RTE_VER_MONTH, \
34  RTE_VER_MINOR, \
35  RTE_VER_RELEASE)
36 
40 __rte_experimental
41 const char *rte_version_prefix(void);
42 
46 __rte_experimental
47 unsigned int rte_version_year(void);
48 
52 __rte_experimental
53 unsigned int rte_version_month(void);
54 
58 __rte_experimental
59 unsigned int rte_version_minor(void);
60 
64 __rte_experimental
65 const char *rte_version_suffix(void);
66 
70 __rte_experimental
71 unsigned int rte_version_release(void);
72 
78 const char *rte_version(void);
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* RTE_VERSION_H */
__rte_experimental const char * rte_version_prefix(void)
__rte_experimental unsigned int rte_version_release(void)
__rte_experimental unsigned int rte_version_minor(void)
const char * rte_version(void)
__rte_experimental const char * rte_version_suffix(void)
__rte_experimental unsigned int rte_version_month(void)
__rte_experimental unsigned int rte_version_year(void)