2016-05-31 12:33:51 +00:00
|
|
|
#ifndef _AUTH_SERVER_H
|
|
|
|
# define _AUTH_SERVER_H
|
|
|
|
|
|
|
|
/* Logging levels. These are the possible values for CURRENT_LOG_LEVEL above */
|
|
|
|
#define LOG_LEVEL_ERROR 0
|
|
|
|
#define LOG_LEVEL_INFO 1
|
|
|
|
#define LOG_LEVEL_DEBUG 2
|
|
|
|
|
2016-05-31 12:51:06 +00:00
|
|
|
/* The client_t struct. With this struct full client data can be
|
|
|
|
* stored in a doubly-linked list */
|
2016-05-31 12:33:51 +00:00
|
|
|
typedef struct _client_t {
|
2016-05-31 12:51:06 +00:00
|
|
|
int socket;
|
|
|
|
char *ip;
|
|
|
|
time_t last_reset;
|
|
|
|
struct _client_t *previous;
|
|
|
|
struct _client_t *next;
|
2016-05-31 12:33:51 +00:00
|
|
|
} client_t;
|
|
|
|
|
|
|
|
#endif /* _AUTH_SERVER_H */
|