summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_config.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-09 14:09:15 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-09 14:09:15 +0100
commite22dcecc66b9915b6e1aafbcdc0e72e91248681c (patch)
tree6456b6492a8630fcf174130183080a3fcc19c6f4 /src/backend/taler-merchant-httpd_config.c
parent7ceb24c57d843a5ba7aac4b6cfe5e2064dd16758 (diff)
downloadmerchant-e22dcecc66b9915b6e1aafbcdc0e72e91248681c.tar.gz
merchant-e22dcecc66b9915b6e1aafbcdc0e72e91248681c.tar.bz2
merchant-e22dcecc66b9915b6e1aafbcdc0e72e91248681c.zip
add version
Diffstat (limited to 'src/backend/taler-merchant-httpd_config.c')
-rw-r--r--src/backend/taler-merchant-httpd_config.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_config.c b/src/backend/taler-merchant-httpd_config.c
index 8af84e91..35b7657b 100644
--- a/src/backend/taler-merchant-httpd_config.c
+++ b/src/backend/taler-merchant-httpd_config.c
@@ -32,6 +32,24 @@
/**
+ * Taler protocol version in the format CURRENT:REVISION:AGE
+ * as used by GNU libtool. See
+ * https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
+ *
+ * Please be very careful when updating and follow
+ * https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info
+ * precisely. Note that this version has NOTHING to do with the
+ * release version, and the format is NOT the same that semantic
+ * versioning uses either.
+ *
+ * When changing this version, you likely want to also update
+ * #TALER_PROTOCOL_CURRENT and #TALER_PROTOCOL_AGE in
+ * TBD.c! // FIXME: update comment once libtalermerchant looks at version!
+ */
+#define TALER_PROTOCOL_VERSION "0:0:0"
+
+
+/**
* Handle a "/config" request.
*
* @param rh context of the handler
@@ -52,8 +70,9 @@ MH_handler_config (struct TMH_RequestHandler *rh,
{
return TMH_RESPONSE_reply_json_pack (connection,
MHD_HTTP_OK,
- "{s:s}",
- "currency", TMH_currency);
+ "{s:s, s:s}",
+ "currency", TMH_currency,
+ "version", TALER_PROTOCOL_VERSION);
}