aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-28 20:03:02 +0200
committerMax Kellermann <max@duempel.org>2008-08-28 20:03:02 +0200
commitc0197c58bae666ddf596d0f585cb419083cd3300 (patch)
treefd979de8026a50f4663739f713a68d6ad38caae1 /src/client.c
parent6d18e0009926773464b2749f9e39e0785ea87269 (diff)
downloadmpd-c0197c58bae666ddf596d0f585cb419083cd3300.tar.gz
mpd-c0197c58bae666ddf596d0f585cb419083cd3300.tar.xz
mpd-c0197c58bae666ddf596d0f585cb419083cd3300.zip
client: renamed all public functions
Functions which operate on the whole client list are prefixed with "client_manager_", and functions which handle just one client just get "client_".
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client.c b/src/client.c
index 0251b7ba1..e587fd9a4 100644
--- a/src/client.c
+++ b/src/client.c
@@ -234,7 +234,7 @@ static void client_close(struct client *client)
SECURE("client %i: closed\n", client->num);
}
-void openAInterface(int fd, const struct sockaddr *addr)
+void client_new(int fd, const struct sockaddr *addr)
{
unsigned int i;
@@ -476,7 +476,7 @@ static void closeNextErroredInterface(void)
}
}
-int doIOForInterfaces(void)
+int client_manager_io(void)
{
fd_set rfds;
fd_set wfds;
@@ -535,7 +535,7 @@ int doIOForInterfaces(void)
return 1;
}
-void initInterfaces(void)
+void client_manager_init(void)
{
unsigned int i;
char *test;
@@ -613,7 +613,7 @@ static void client_close_all(void)
free(list_cache);
}
-void freeAllInterfaces(void)
+void client_manager_deinit(void)
{
client_close_all();
@@ -622,7 +622,7 @@ void freeAllInterfaces(void)
client_max_connections = 0;
}
-void closeOldInterfaces(void)
+void client_manager_expire(void)
{
unsigned int i;
@@ -688,7 +688,7 @@ static void client_write_deferred(struct client *client)
}
}
-int interfacePrintWithFD(int fd, const char *buffer, size_t buflen)
+int client_print(int fd, const char *buffer, size_t buflen)
{
static unsigned int i;
size_t copylen;