aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 19:16:34 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 19:16:34 +0200
commit2835e376842facea7b7c145889ac64d413377b6c (patch)
tree7978f7ef2dca3c3f3524db075fa62f02a3bd84bc /src/client.h
parentbf6994d8e3dde638ced26f4e1ae850422631ee72 (diff)
downloadmpd-2835e376842facea7b7c145889ac64d413377b6c.tar.gz
mpd-2835e376842facea7b7c145889ac64d413377b6c.tar.xz
mpd-2835e376842facea7b7c145889ac64d413377b6c.zip
client: added client_[gs]et_permission()
The code in command.c shouldn't mess with a pointer to client->permission. Provide an API for accessing this value.
Diffstat (limited to '')
-rw-r--r--src/client.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index f0e35bf5c..9fc6b3b76 100644
--- a/src/client.h
+++ b/src/client.h
@@ -33,6 +33,10 @@ void client_new(int fd, const struct sockaddr *addr);
int client_is_expired(const struct client *client);
+int client_get_permission(const struct client *client);
+
+void client_set_permission(struct client *client, int permission);
+
/**
* Write a block of data to the client.
*/