1/* SPDX-License-Identifier: BSD-3-Clause */
2#ifndef LIBSLIRP_VERSION_H_
3#define LIBSLIRP_VERSION_H_
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#define SLIRP_MAJOR_VERSION @SLIRP_MAJOR_VERSION@
10#define SLIRP_MINOR_VERSION @SLIRP_MINOR_VERSION@
11#define SLIRP_MICRO_VERSION @SLIRP_MICRO_VERSION@
12#define SLIRP_VERSION_STRING @SLIRP_VERSION_STRING@
13
14#define SLIRP_CHECK_VERSION(major,minor,micro)                          \
15    (SLIRP_MAJOR_VERSION > (major) ||                                   \
16     (SLIRP_MAJOR_VERSION == (major) && SLIRP_MINOR_VERSION > (minor)) || \
17     (SLIRP_MAJOR_VERSION == (major) && SLIRP_MINOR_VERSION == (minor) && \
18      SLIRP_MICRO_VERSION >= (micro)))
19
20#ifdef __cplusplus
21} /* extern "C" */
22#endif
23
24#endif /* LIBSLIRP_VERSION_H_ */
25