srsLTE/lib/include/srslte/version.h.in

44 lines
1.3 KiB
C
Raw Normal View History

/**
2015-11-13 08:08:36 -08:00
*
* \section COPYRIGHT
2015-11-13 08:08:36 -08:00
*
* Copyright 2013-2020 Software Radio Systems Limited
2015-11-13 08:08:36 -08:00
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the distribution.
2015-11-13 08:08:36 -08:00
*
*/
2018-03-31 10:04:04 -07:00
#ifndef SRSLTE_VERSION_H_IN
#define SRSLTE_VERSION_H_IN
2015-11-13 08:08:36 -08:00
// the configured options and settings for SRSLTE
#define SRSLTE_VERSION_MAJOR @SRSLTE_VERSION_MAJOR@
#define SRSLTE_VERSION_MINOR @SRSLTE_VERSION_MINOR@
#define SRSLTE_VERSION_PATCH @SRSLTE_VERSION_PATCH@
2015-11-16 04:24:42 -08:00
#define SRSLTE_VERSION_STRING "@SRSLTE_VERSION_STRING@"
2015-11-13 10:30:54 -08:00
#define SRSLTE_VERSION_ENCODE(major, minor, patch) ( \
((major) * 10000) \
+ ((minor) * 100) \
+ ((patch) * 1))
#define SRSLTE_VERSION SRSLTE_VERSION_ENCODE( \
SRSLTE_VERSION_MAJOR, \
SRSLTE_VERSION_MINOR, \
SRSLTE_VERSION_PATCH)
#define SRSLTE_VERSION_CHECK(major,minor,patch) \
(SRSLTE_VERSION >= SRSLTE_VERSION_ENCODE(major,minor,patch))
2015-11-13 08:08:36 -08:00
2015-11-13 08:31:35 -08:00
#include "srslte/config.h"
2015-11-16 04:24:42 -08:00
SRSLTE_API char* srslte_get_version();
2015-11-13 08:08:36 -08:00
SRSLTE_API int srslte_get_version_major();
SRSLTE_API int srslte_get_version_minor();
SRSLTE_API int srslte_get_version_patch();
2015-11-16 04:24:42 -08:00
SRSLTE_API int srslte_check_version(int major, int minor, int patch);
2015-11-13 08:08:36 -08:00
#endif // VERSION_