diff --git a/CMakeLists.txt b/CMakeLists.txt index ad3d4eb04..1a7381c65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ CONFIGURE_FILE( ######################################################################## # Options ######################################################################## -option(DisableMEX "DisableMEX" OFF) +option(DisableMEX "DisableMEX" ON) ######################################################################## # Install Dirs diff --git a/README.md b/README.md index 90e333eac..3d5c4723f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ srsLTE srsLTE is a free and open-source LTE library for SDR UE and eNodeB. The library is highly modular with minimum inter-module or external dependencies. It is entirely written in C and, if available in the system, uses the acceleration library VOLK distributed in GNURadio. +**srsLTE is used by srsUE, a full stack (PHY to IP) implementation of an LTE UE. srsUE is available at https://github.com/srslte/srsue** + The srsLTE software license is AGPLv3. Current Features: diff --git a/srslte/include/srslte/version.h.in b/srslte/include/srslte/version.h.in index 66174eee9..65a172725 100644 --- a/srslte/include/srslte/version.h.in +++ b/srslte/include/srslte/version.h.in @@ -32,7 +32,7 @@ #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_STRING "@SRSLTE_VERSION_STRING@" #define SRSLTE_VERSION_ENCODE(major, minor, patch) ( \ ((major) * 10000) \ @@ -49,8 +49,10 @@ #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_ diff --git a/srslte/lib/version/src/version.c b/srslte/lib/version/src/version.c index 138d1470a..2cf1d4bf2 100644 --- a/srslte/lib/version/src/version.c +++ b/srslte/lib/version/src/version.c @@ -26,6 +26,10 @@ #include "srslte/version.h" +char* srslte_get_version() { + return SRSLTE_VERSION_STRING; +} + int srslte_get_version_major() { return SRSLTE_VERSION_MAJOR; } @@ -35,3 +39,7 @@ int srslte_get_version_minor() { int srslte_get_version_patch() { return SRSLTE_VERSION_PATCH; } + +int srslte_check_version(int major, int minor, int patch) { + return (SRSLTE_VERSION >= SRSLTE_VERSION_ENCODE(major,minor,patch)); +}