protocol/Result: move command_list_num to class Response

This commit is contained in:
Max Kellermann
2015-08-14 19:00:02 +02:00
parent c8d0f947d2
commit d053797340
6 changed files with 12 additions and 10 deletions

View File

@@ -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;