mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-27 02:09:14 -05:00
37 lines
709 B
C++
37 lines
709 B
C++
|
/**
|
||
|
@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";
|
||
|
}
|