DPDK 21.11.9
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
14extern "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
41const char *rte_version_prefix(void);
42
46__rte_experimental
47unsigned int rte_version_year(void);
48
52__rte_experimental
53unsigned int rte_version_month(void);
54
58__rte_experimental
59unsigned int rte_version_minor(void);
60
64__rte_experimental
65const char *rte_version_suffix(void);
66
70__rte_experimental
71unsigned int rte_version_release(void);
72
78const 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_year(void)
__rte_experimental unsigned int rte_version_minor(void)
__rte_experimental const char * rte_version_suffix(void)
const char * rte_version(void)
__rte_experimental unsigned int rte_version_month(void)
__rte_experimental unsigned int rte_version_release(void)