X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-server.h;h=8d0f9c410ac6a9ef69e83ba41aa0e84693ae36c7;hp=8f2d34b7c1bd5b2b6c08cef9aa0f8d3867b9b2ec;hb=747a73feb09523f99f5fb65dcb048ba38cc6eeb6;hpb=d7272cb44f0da95f375baba9c9b55691c98af792 diff --git a/src/ttt-server.h b/src/ttt-server.h index 8f2d34b..8d0f9c4 100644 --- a/src/ttt-server.h +++ b/src/ttt-server.h @@ -89,6 +89,20 @@ ttt_server_statistics (ttt_server_t *server, const char *username, char **response); +/* Checks to see if the username is registered. If the username exists + * will return TTT_ERROR_NONE, else TTT_ERROR_NO_USER. + * + * Locking: The server mutex will be acquired and held throughout the + * execution of this function. Each client mutex may also be acquired + * and held by functions called during the execution of this function. + * + * Errors: If an error such as an IO error occurs, this function will + * not return. + */ +ttt_error_t +ttt_server_verify_username (ttt_server_t *server, + const char *username); + /* Gets the server hostname. * */