aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientList.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientList.cxx (renamed from src/client_list.c)12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client_list.c b/src/ClientList.cxx
index 2c7f37aff..e0fa533d9 100644
--- a/src/client_list.c
+++ b/src/ClientList.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@
*/
#include "config.h"
-#include "client_internal.h"
+#include "ClientInternal.hxx"
#include <assert.h>
@@ -37,16 +37,16 @@ client_list_is_full(void)
return num_clients >= client_max_connections;
}
-struct client *
+Client *
client_list_get_first(void)
{
assert(clients != NULL);
- return clients->data;
+ return (Client *)clients->data;
}
void
-client_list_add(struct client *client)
+client_list_add(Client *client)
{
clients = g_list_prepend(clients, client);
++num_clients;
@@ -59,7 +59,7 @@ client_list_foreach(GFunc func, gpointer user_data)
}
void
-client_list_remove(struct client *client)
+client_list_remove(Client *client)
{
assert(num_clients > 0);
assert(clients != NULL);