projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Client_find_by_session() instead of a few open-coded loops.
[umurmur.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index 2759060cc433729a1aac15ef750257499eb63858..9e3fcb5fa7b379f5ca18f2db33e6b2516b508910 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-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);
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
#endif