]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/client/client_auth.h
Use dragonnet
[dragonblocks_alpha.git] / src / client / client_auth.h
1 #ifndef _CLIENT_AUTH_H_
2 #define _CLIENT_AUTH_H_
3
4 typedef enum
5 {
6         AUTH_INIT,
7         AUTH_WAIT,
8         AUTH_SUCCESS,
9 } ClientAuthState;
10
11 extern struct ClientAuth
12 {
13         char *name;
14         ClientAuthState state;
15 } client_auth;
16
17 bool client_auth_init();
18 void client_auth_assert_state(ClientAuthState state, const char *pkt);
19 void client_auth_deinit();
20
21 #endif