diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 18:07:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 18:07:48 +0100 |
commit | 59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23 (patch) | |
tree | 58d15f2651250942d8ff46fd1a43520168e33595 /src/ClientInternal.hxx | |
parent | 5155b0f6087b5929838f6594a719011e3e704244 (diff) | |
download | mpd-59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23.tar.gz mpd-59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23.tar.xz mpd-59400d38a99ac8ffbfd7d89e021ed2f56ffbfd23.zip |
Client: use std::deque for messages
Diffstat (limited to 'src/ClientInternal.hxx')
-rw-r--r-- | src/ClientInternal.hxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ClientInternal.hxx b/src/ClientInternal.hxx index be423bb24..5ad24068c 100644 --- a/src/ClientInternal.hxx +++ b/src/ClientInternal.hxx @@ -26,6 +26,7 @@ #include <set> #include <string> +#include <deque> #include <glib.h> @@ -94,15 +95,9 @@ public: unsigned num_subscriptions; /** - * A list of messages this client has received in reverse - * order (latest first). + * A list of messages this client has received. */ - GSList *messages; - - /** - * The number of messages in #messages. - */ - unsigned num_messages; + std::deque<ClientMessage> messages; gcc_pure bool IsSubscribed(const char *channel_name) const { |