DPDK 22.11.6
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 <string.h>
18#include <stdio.h>
19#include <rte_compat.h>
20
24#define RTE_VERSION_NUM(a,b,c,d) ((a) << 24 | (b) << 16 | (c) << 8 | (d))
25
29#define RTE_VERSION RTE_VERSION_NUM( \
30 RTE_VER_YEAR, \
31 RTE_VER_MONTH, \
32 RTE_VER_MINOR, \
33 RTE_VER_RELEASE)
34
38__rte_experimental
39const char *rte_version_prefix(void);
40
44__rte_experimental
45unsigned int rte_version_year(void);
46
50__rte_experimental
51unsigned int rte_version_month(void);
52
56__rte_experimental
57unsigned int rte_version_minor(void);
58
62__rte_experimental
63const char *rte_version_suffix(void);
64
68__rte_experimental
69unsigned int rte_version_release(void);
70
76const char *rte_version(void);
77
78#ifdef __cplusplus
79}
80#endif
81
82#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)