aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Response.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-14 19:00:02 +0200
committerMax Kellermann <max@duempel.org>2015-08-14 19:00:02 +0200
commitd053797340ae16b16186fe31d60bb12979ba9b81 (patch)
tree6bd922a06bc5e749a98eb52803d78dc9b2c8f9d3 /src/client/Response.hxx
parentc8d0f947d2270a52183c653a641bca5b7321f915 (diff)
downloadmpd-d053797340ae16b16186fe31d60bb12979ba9b81.tar.gz
mpd-d053797340ae16b16186fe31d60bb12979ba9b81.tar.xz
mpd-d053797340ae16b16186fe31d60bb12979ba9b81.zip
protocol/Result: move command_list_num to class Response
Diffstat (limited to 'src/client/Response.hxx')
-rw-r--r--src/client/Response.hxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/Response.hxx b/src/client/Response.hxx
index ba53298c8..044bdf307 100644
--- a/src/client/Response.hxx
+++ b/src/client/Response.hxx
@@ -31,8 +31,15 @@ class Client;
class Response {
Client &client;
+ /**
+ * This command's index in the command list. Used to generate
+ * error messages.
+ */
+ const unsigned list_index;
+
public:
- explicit Response(Client &_client):client(_client) {}
+ Response(Client &_client, unsigned _list_index)
+ :client(_client), list_index(_list_index) {}
Response(const Response &) = delete;
Response &operator=(const Response &) = delete;