master
ismagom 9 years ago
commit 2e60cbf373

@ -48,7 +48,7 @@ CONFIGURE_FILE(
######################################################################## ########################################################################
# Options # Options
######################################################################## ########################################################################
option(DisableMEX "DisableMEX" OFF) option(DisableMEX "DisableMEX" ON)
######################################################################## ########################################################################
# Install Dirs # Install Dirs

@ -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 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. The srsLTE software license is AGPLv3.
Current Features: Current Features:

@ -32,7 +32,7 @@
#define SRSLTE_VERSION_MAJOR @SRSLTE_VERSION_MAJOR@ #define SRSLTE_VERSION_MAJOR @SRSLTE_VERSION_MAJOR@
#define SRSLTE_VERSION_MINOR @SRSLTE_VERSION_MINOR@ #define SRSLTE_VERSION_MINOR @SRSLTE_VERSION_MINOR@
#define SRSLTE_VERSION_PATCH @SRSLTE_VERSION_PATCH@ #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) ( \ #define SRSLTE_VERSION_ENCODE(major, minor, patch) ( \
((major) * 10000) \ ((major) * 10000) \
@ -49,8 +49,10 @@
#include "srslte/config.h" #include "srslte/config.h"
SRSLTE_API char* srslte_get_version();
SRSLTE_API int srslte_get_version_major(); SRSLTE_API int srslte_get_version_major();
SRSLTE_API int srslte_get_version_minor(); SRSLTE_API int srslte_get_version_minor();
SRSLTE_API int srslte_get_version_patch(); SRSLTE_API int srslte_get_version_patch();
SRSLTE_API int srslte_check_version(int major, int minor, int patch);
#endif // VERSION_ #endif // VERSION_

@ -26,6 +26,10 @@
#include "srslte/version.h" #include "srslte/version.h"
char* srslte_get_version() {
return SRSLTE_VERSION_STRING;
}
int srslte_get_version_major() { int srslte_get_version_major() {
return SRSLTE_VERSION_MAJOR; return SRSLTE_VERSION_MAJOR;
} }
@ -35,3 +39,7 @@ int srslte_get_version_minor() {
int srslte_get_version_patch() { int srslte_get_version_patch() {
return SRSLTE_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));
}

Loading…
Cancel
Save