DPDK  24.11.0-rc3
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 #include <string.h>
14 #include <stdio.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
23 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
24 
28 #define RTE_VERSION RTE_VERSION_NUM( \
29  RTE_VER_YEAR, \
30  RTE_VER_MONTH, \
31  RTE_VER_MINOR, \
32  RTE_VER_RELEASE)
33 
37 const char *rte_version_prefix(void);
38 
42 unsigned int rte_version_year(void);
43 
47 unsigned int rte_version_month(void);
48 
52 unsigned int rte_version_minor(void);
53 
57 const char *rte_version_suffix(void);
58 
62 unsigned int rte_version_release(void);
63 
69 const char *rte_version(void);
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* RTE_VERSION_H */
unsigned int rte_version_year(void)
const char * rte_version_suffix(void)
const char * rte_version(void)
unsigned int rte_version_month(void)
unsigned int rte_version_release(void)
unsigned int rte_version_minor(void)
const char * rte_version_prefix(void)