mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
util/token: add docs
This commit is contained in:
parent
55be74ad86
commit
2410710a0f
@ -3,8 +3,14 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of bytes used by a token, including the terminating zero byte.
|
||||||
|
*/
|
||||||
#define TOKEN_SIZE 33
|
#define TOKEN_SIZE 33
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a random token string.
|
||||||
|
*/
|
||||||
bool generate_token(char out[static TOKEN_SIZE]);
|
bool generate_token(char out[static TOKEN_SIZE]);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user