1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
7 * Definitions of DPDK version numbers
10 #ifndef _RTE_VERSION_H_
11 #define _RTE_VERSION_H_
19 #include <rte_compat.h>
22 * Macro to compute a version number usable for comparisons
24 #define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
27 * All version numbers in one to compare with RTE_VERSION_NUM()
29 #define RTE_VERSION RTE_VERSION_NUM( \
36 * Function to return DPDK version prefix string
39 const char *rte_version_prefix(void);
42 * Function to return DPDK version year
45 unsigned int rte_version_year(void);
48 * Function to return DPDK version month
51 unsigned int rte_version_month(void);
54 * Function to return DPDK minor version number
57 unsigned int rte_version_minor(void);
60 * Function to return DPDK version suffix for any release candidates
63 const char *rte_version_suffix(void);
66 * Function to return DPDK version release candidate value
69 unsigned int rte_version_release(void);
72 * Function returning version string
76 const char *rte_version(void);
82 #endif /* RTE_VERSION_H */