aboutsummaryrefslogtreecommitdiffstats
path: root/src/MessageCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-09 08:12:44 +0100
committerMax Kellermann <max@duempel.org>2013-01-09 08:12:44 +0100
commit2564f763d7c206f36d6c10c16b78590e4a47714d (patch)
tree39786632609607cce887b4fa5d55ce73dfd9e32d /src/MessageCommands.cxx
parent377a2b9e077d19501b89f4347afa78baa6c32f5f (diff)
downloadmpd-2564f763d7c206f36d6c10c16b78590e4a47714d.tar.gz
mpd-2564f763d7c206f36d6c10c16b78590e4a47714d.tar.xz
mpd-2564f763d7c206f36d6c10c16b78590e4a47714d.zip
ClientList: don't use GLib
Use std::list instead of GList.
Diffstat (limited to 'src/MessageCommands.cxx')
-rw-r--r--src/MessageCommands.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/MessageCommands.cxx b/src/MessageCommands.cxx
index 3a7c38755..6a967f95b 100644
--- a/src/MessageCommands.cxx
+++ b/src/MessageCommands.cxx
@@ -78,11 +78,10 @@ struct channels_context {
};
static void
-collect_channels(gpointer data, gpointer user_data)
+collect_channels(Client *client, gpointer user_data)
{
struct channels_context *context =
(struct channels_context *)user_data;
- const Client *client = (const Client *)data;
context->channels.insert(client->subscriptions.begin(),
client->subscriptions.end());
@@ -133,11 +132,10 @@ struct send_message_context {
};
static void
-send_message(gpointer data, gpointer user_data)
+send_message(Client *client, gpointer user_data)
{
struct send_message_context *context =
(struct send_message_context *)user_data;
- Client *client = (Client *)data;
if (client_push_message(client, context->msg))
context->sent = true;