Add the Client_find_by_session() function.
[umurmur.git] / src / client.h
index 2759060cc433729a1aac15ef750257499eb63858..9e3fcb5fa7b379f5ca18f2db33e6b2516b508910 100644 (file)
@@ -136,4 +136,10 @@ bool_t Client_token_match(client_t *client, char const *str);
 void Client_token_free(client_t *client);
 void Client_token_add(client_t *client, char *token_string);
 
+/**
+ * Retrieve the client that matches the given session ID.
+ * Returns NULL if there's no such client.
+ */
+client_t *Client_find_by_session(int session_id);
+
 #endif