From d98a863b82ade86ba538faf0ff9e11d483d681e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Feb 2012 20:05:15 +0100 Subject: client: add "pure" attributes --- src/client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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); -- cgit v1.2.3