From bd801d6d2ed4b71255dc314f56b8c87220b29853 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Aug 2008 20:02:43 +0200 Subject: renamed interface.c to client.c I don't believe "interface" is a good name for something like "connection by a client to MPD", let's call it "client". This is the first patch in the series which changes the name, beginning with the file name. --- src/listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/listen.c') diff --git a/src/listen.c b/src/listen.c index 2b9b38619..4adebb66a 100644 --- a/src/listen.c +++ b/src/listen.c @@ -17,7 +17,7 @@ */ #include "listen.h" -#include "interface.h" +#include "client.h" #include "conf.h" #include "log.h" #include "utils.h" -- cgit v1.2.3 From 9cf1bf0671950024a21918335ab82ce9ef24cbf7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Aug 2008 20:03:02 +0200 Subject: 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_". --- src/listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/listen.c') diff --git a/src/listen.c b/src/listen.c index 4adebb66a..c40035279 100644 --- a/src/listen.c +++ b/src/listen.c @@ -297,7 +297,7 @@ void getConnections(fd_set * fds) if (FD_ISSET(listenSockets[i], fds)) { if ((fd = accept(listenSockets[i], &sockAddr, &socklen)) >= 0) { - openAInterface(fd, &sockAddr); + client_new(fd, &sockAddr); } else if (fd < 0 && (errno != EAGAIN && errno != EINTR)) { ERROR("Problems accept()'ing\n"); -- cgit v1.2.3