aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-09 01:40:59 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-09 01:40:59 -0700
commit1c3e345d833edb4ce0d7a398212e24c32becba04 (patch)
tree190651f2ede4608648170855fbda468de21d75c8 /src/client.h
parentbb59a92bdb4f5b832a75ef9ff2c42aae58bdd7e9 (diff)
parent0e645468c6249800f573efaa4bca94753245d7e0 (diff)
downloadmpd-1c3e345d833edb4ce0d7a398212e24c32becba04.tar.gz
mpd-1c3e345d833edb4ce0d7a398212e24c32becba04.tar.xz
mpd-1c3e345d833edb4ce0d7a398212e24c32becba04.zip
Merge branch 'mk/client'
* mk/client: (24 commits) client: reorder function declarations client: check "expired" after command execution client: added global "expired" flag client: removed superfluous assertion client: more assertions client: moved code to sockaddr_to_tmp_string() client: replace "expired" flag with fd==-1 client: moved "expired" accesses into inline function client: no while loop in client_manager_io() client: select() errors are fatal client: use client_defer_output() in client_write() client: moved code to client_write() client: client_defer_output() can create the first defer buffer client: return early on error in client_defer_output() client: moved code to client_defer_output() client: don't free client resources except in client_close() client: allocate clients dynamically client: added function client_by_fd() client: return early in client_new() client: renamed all public functions ...
Diffstat (limited to '')
-rw-r--r--src/client.h (renamed from src/interface.h)13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/interface.h b/src/client.h
index c83381319..a4cb4a902 100644
--- a/src/interface.h
+++ b/src/client.h
@@ -21,12 +21,13 @@
#include "os_compat.h"
-void initInterfaces(void);
-void openAInterface(int fd, const struct sockaddr *addr);
-void freeAllInterfaces(void);
-void closeOldInterfaces(void);
-int interfacePrintWithFD(int fd, const char *buffer, size_t len);
+void client_manager_init(void);
+void client_manager_deinit(void);
+int client_manager_io(void);
+void client_manager_expire(void);
-int doIOForInterfaces(void);
+void client_new(int fd, const struct sockaddr *addr);
+
+int client_print(int fd, const char *buffer, size_t len);
#endif