aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:37:11 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:37:11 +0200
commit8811c0e05943edbcb3d7203ef4f61ec89423718a (patch)
tree666d7e4ecd907f3a7d4c648085ec655efda9aa38 /src/client.h
parent8b1b82b36374e95bcef8195fcd15e4014e73567d (diff)
downloadmpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.tar.gz
mpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.tar.xz
mpd-8811c0e05943edbcb3d7203ef4f61ec89423718a.zip
export the function client_is_expired()
Instead of passing the pointer to the "expired" flag to processListOfCommands(), this function should use the client API to check this flag. We can now remove the "global_expired" hack introduced recently.
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index db4bc2023..dc67c044f 100644
--- a/src/client.h
+++ b/src/client.h
@@ -37,6 +37,8 @@ void client_new(int fd, const struct sockaddr *addr);
*/
int client_get_fd(struct client *client);
+int client_is_expired(const struct client *client);
+
int client_print(int fd, const char *buffer, size_t len);
#endif