aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 20:05:15 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 20:05:15 +0100
commitd98a863b82ade86ba538faf0ff9e11d483d681e4 (patch)
tree686b2473c90cbb7b7d55274fd7d83ed6afbf3a40 /src/client.h
parent3b6790c7dc5994bce1b4dddf51871377ae46de6b (diff)
downloadmpd-d98a863b82ade86ba538faf0ff9e11d483d681e4.tar.gz
mpd-d98a863b82ade86ba538faf0ff9e11d483d681e4.tar.xz
mpd-d98a863b82ade86ba538faf0ff9e11d483d681e4.zip
client: add "pure" attributes
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h
index 5647e5eae..0bd02d0a3 100644
--- a/src/client.h
+++ b/src/client.h
@@ -35,14 +35,17 @@ void client_manager_deinit(void);
void client_new(struct player_control *player_control,
int fd, const struct sockaddr *sa, size_t sa_length, int uid);
+G_GNUC_PURE
bool client_is_expired(const struct client *client);
/**
* returns the uid of the client process, or a negative value if the
* uid is unknown
*/
+G_GNUC_PURE
int client_get_uid(const struct client *client);
+G_GNUC_PURE
unsigned client_get_permission(const struct client *client);
void client_set_permission(struct client *client, unsigned permission);