add version to variables

This commit is contained in:
Jan-Piet Mens
2024-02-23 12:50:23 +01:00
parent 934aaec847
commit 63e0132b05
+2
View File
@@ -28,6 +28,7 @@
#include "misc.h"
#include "util.h"
#include "json.h"
#include "version.h"
char *bindump(char *buf, long buflen)
{
@@ -270,6 +271,7 @@ void display_json_variables(struct udata *ud, bool plain)
JsonNode *json = json_mkobject();
char *js;
j_str(json, "VERSION", VERSION);
j_str(json, "CONFIGFILE", CONFIGFILE);
j_str(json, "OTR_STORAGEDIR", STORAGEDIR);
#if WITH_MQTT