DPDK 25.03.0-rc0
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
17extern "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
37const char *rte_version_prefix(void);
38
42unsigned int rte_version_year(void);
43
47unsigned int rte_version_month(void);
48
52unsigned int rte_version_minor(void);
53
57const char *rte_version_suffix(void);
58
62unsigned int rte_version_release(void);
63
69const char *rte_version(void);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* RTE_VERSION_H */
const char * rte_version_prefix(void)
unsigned int rte_version_release(void)
unsigned int rte_version_minor(void)
unsigned int rte_version_month(void)
const char * rte_version_suffix(void)
unsigned int rte_version_year(void)
const char * rte_version(void)