From 5bd5b07e159b016224746532ca04b7143c7cba4d Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 24 Apr 2014 18:09:49 +0000 Subject: [PATCH] RPC: Add "Miner" to version response to include software name along with version --- api.c | 3 ++- doc/API | 14 +++++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/api.c b/api.c index 545506b3..936a10f4 100644 --- a/api.c +++ b/api.c @@ -1554,7 +1554,8 @@ static void apiversion(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __m message(io_data, MSG_VERSION, 0, NULL, isjson); io_open = io_add(io_data, isjson ? COMSTR JSON_VERSION : _VERSION COMSTR); - root = api_add_string(root, "SGMiner", VERSION, false); + root = api_add_string(root, "Miner", PACKAGE " " VERSION, false); + root = api_add_string(root, "CGMiner", VERSION, false); root = api_add_const(root, "API", APIVERSION, false); root = print_data(root, buf, isjson, false); diff --git a/doc/API b/doc/API index c39f6385..ada9dd16 100644 --- a/doc/API +++ b/doc/API @@ -145,8 +145,9 @@ The list of requests - a (*) means it requires privileged access - and replies: Request Reply Section Details ------- ------------- ------- - version VERSION SGMiner=sgminer, version - API=API| version + version VERSION Miner="sgminer " sgminer version + CGMiner=sgminer version + API=API version config CONFIG Some miner configuration information: GPU Count=N, <- the number of GPUs @@ -519,7 +520,7 @@ api-example.c - a 'C' program to access the API (with source code) miner.php - an example web page to access the API This includes buttons and inputs to attempt access to the privileged commands - See the end of this API-README for details of how to tune the display + See the end of this API readme for details of how to tune the display and also to use the option to display a multi-rig summary ---------- @@ -527,6 +528,13 @@ miner.php - an example web page to access the API Feature Changelog for external applications using the API: +API V + +Modified API commands: + 'version' - add 'Miner' + +---------- + API V3.1 (cgminer v3.12.1) Multiple report request command with '+' e.g. summary+devs