ip_frag: add IPv4 options fragment
[dpdk.git] / lib / eal / include / rte_version.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2014 Intel Corporation
3  */
4
5 /**
6  * @file
7  * Definitions of DPDK version numbers
8  */
9
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
21 /**
22  * Macro to compute a version number usable for comparisons
23  */
24 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
25
26 /**
27  * All version numbers in one to compare with RTE_VERSION_NUM()
28  */
29 #define RTE_VERSION RTE_VERSION_NUM( \
30                         RTE_VER_YEAR, \
31                         RTE_VER_MONTH, \
32                         RTE_VER_MINOR, \
33                         RTE_VER_RELEASE)
34
35 /**
36  * Function to return DPDK version prefix string
37  */
38 __rte_experimental
39 const char *rte_version_prefix(void);
40
41 /**
42  * Function to return DPDK version year
43  */
44 __rte_experimental
45 unsigned int rte_version_year(void);
46
47 /**
48  * Function to return DPDK version month
49  */
50 __rte_experimental
51 unsigned int rte_version_month(void);
52
53 /**
54  * Function to return DPDK minor version number
55  */
56 __rte_experimental
57 unsigned int rte_version_minor(void);
58
59 /**
60  * Function to return DPDK version suffix for any release candidates
61  */
62 __rte_experimental
63 const char *rte_version_suffix(void);
64
65 /**
66  * Function to return DPDK version release candidate value
67  */
68 __rte_experimental
69 unsigned int rte_version_release(void);
70
71 /**
72  * Function returning version string
73  * @return
74  *     DPDK version string
75  */
76 const char *rte_version(void);
77
78 #ifdef __cplusplus
79 }
80 #endif
81
82 #endif /* RTE_VERSION_H */