mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-19 14:18:45 -04:00
LimeSDR support: built-in LimeSuite for Debian
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
@file VersionInfo.cpp
|
||||
@author Lime Microsystems
|
||||
@brief API for querying version and build information.
|
||||
*/
|
||||
|
||||
#include "VersionInfo.h"
|
||||
#include <sstream>
|
||||
|
||||
#define QUOTE_(x) #x
|
||||
#define QUOTE(x) QUOTE_(x)
|
||||
|
||||
std::string lime::GetLibraryVersion(void)
|
||||
{
|
||||
return "17.03.0-gaa726d64";
|
||||
}
|
||||
|
||||
std::string lime::GetBuildTimestamp(void)
|
||||
{
|
||||
return "2017-04-17";
|
||||
}
|
||||
|
||||
std::string lime::GetAPIVersion(void)
|
||||
{
|
||||
const std::string verStr(QUOTE(LIME_SUITE_API_VERSION));
|
||||
std::stringstream ss;
|
||||
ss << std::stoi(verStr.substr(2, 4)) << "."
|
||||
<< std::stoi(verStr.substr(6, 2)) << "."
|
||||
<< std::stoi(verStr.substr(8, 2));
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string lime::GetABIVersion(void)
|
||||
{
|
||||
return "17.03-1";
|
||||
}
|
||||
Reference in New Issue
Block a user