mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Add version string to json output (#690)
* hyperionversionid * typo * - Former-commit-id: ec5777ccb32fc343ef2f478a7c779a901c8aa489
This commit is contained in:
parent
f04d48063d
commit
ae40edc578
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user