mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.3 KiB
C
44 lines
1.3 KiB
C
/**
|
|
*
|
|
* \section COPYRIGHT
|
|
*
|
|
* Copyright 2013-2020 Software Radio Systems Limited
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef SRSLTE_VERSION_H_IN
|
|
#define SRSLTE_VERSION_H_IN
|
|
|
|
// 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@
|
|
#define SRSLTE_VERSION_STRING "@SRSLTE_VERSION_STRING@"
|
|
|
|
#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))
|
|
|
|
#include "srslte/config.h"
|
|
|
|
SRSLTE_API char* srslte_get_version();
|
|
SRSLTE_API int srslte_get_version_major();
|
|
SRSLTE_API int srslte_get_version_minor();
|
|
SRSLTE_API int srslte_get_version_patch();
|
|
SRSLTE_API int srslte_check_version(int major, int minor, int patch);
|
|
|
|
#endif // VERSION_
|