Add version string to json output (#690)

* hyperionversionid

* typo

* -


Former-commit-id: ec5777ccb32fc343ef2f478a7c779a901c8aa489
This commit is contained in:
brindosch 2016-06-10 18:32:50 +02:00 committed by GitHub
parent f04d48063d
commit ae40edc578

View File

@ -22,6 +22,7 @@
#include <hyperion/ColorCorrection.h>
#include <hyperion/ColorAdjustment.h>
#include <utils/ColorRgb.h>
#include <HyperionConfig.h>
// project includes
#include "JsonClientConnection.h"
@ -591,6 +592,14 @@ void JsonClientConnection::handleServerInfoCommand(const Json::Value &)
}
}
// Add Hyperion Version, build time
Json::Value & version = info["hyperion_build"] = Json::Value(Json::arrayValue);
Json::Value ver;
ver["version"] = HYPERION_VERSION_ID;
ver["time"] = __DATE__" "__TIME__;
version.append(ver);
// send the result
sendMessage(result);
}