diff options
author | Max Kellermann <max@duempel.org> | 2008-08-28 20:03:02 +0200 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-01 18:35:18 -0700 |
commit | 9cf1bf0671950024a21918335ab82ce9ef24cbf7 (patch) | |
tree | 7c637cf24a36932c926e5d1c078ea8c37c17c15d /src/client.c | |
parent | ea2592efafb903bd8afb362daab8f3ae9b3a86c3 (diff) | |
download | mpd-9cf1bf0671950024a21918335ab82ce9ef24cbf7.tar.gz mpd-9cf1bf0671950024a21918335ab82ce9ef24cbf7.tar.xz mpd-9cf1bf0671950024a21918335ab82ce9ef24cbf7.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 '')
-rw-r--r-- | src/client.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client.c b/src/client.c index 63595da03..87088e76f 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; @@ -532,7 +532,7 @@ int doIOForInterfaces(void) return 1; } -void initInterfaces(void) +void client_manager_init(void) { unsigned int i; char *test; @@ -610,7 +610,7 @@ static void client_close_all(void) free(list_cache); } -void freeAllInterfaces(void) +void client_manager_deinit(void) { client_close_all(); @@ -619,7 +619,7 @@ void freeAllInterfaces(void) client_max_connections = 0; } -void closeOldInterfaces(void) +void client_manager_expire(void) { unsigned int i; @@ -685,7 +685,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; |