| 1 |
sysadm |
1.1 |
#ifndef INCLUDED_D2CHARSTATUS_H
|
| 2 |
|
|
#define INCLUDED_D2CHARSTATUS_H
|
| 3 |
|
|
|
| 4 |
|
|
#include "common/queue.h"
|
| 5 |
|
|
#include "common/hashtable.h"
|
| 6 |
|
|
#include "common/packet.h"
|
| 7 |
|
|
#include "common/fdwatch.h"
|
| 8 |
|
|
#include "d2charfile.h"
|
| 9 |
|
|
#include "gamequeue.h"
|
| 10 |
|
|
|
| 11 |
|
|
typedef struct
|
| 12 |
|
|
{
|
| 13 |
|
|
char const * charname;
|
| 14 |
|
|
unsigned int charname_hash;
|
| 15 |
|
|
|
| 16 |
|
|
int checknum_error_flag;
|
| 17 |
|
|
int frequently_create_count;
|
| 18 |
|
|
time_t last_create_time;
|
| 19 |
|
|
time_t ban_begin_time;
|
| 20 |
|
|
|
| 21 |
|
|
} t_charstatus;
|
| 22 |
|
|
|
| 23 |
|
|
static unsigned int charname_hash(char const * charname);
|
| 24 |
|
|
extern t_hashtable * charstatus_list(void);
|
| 25 |
|
|
extern int charstatus_list_create(void);
|
| 26 |
|
|
extern int charstatus_list_destroy(void);
|
| 27 |
|
|
extern int charstatus_list_cleanup(void);
|
| 28 |
|
|
extern t_charstatus * charstatus_create(const char * charname);
|
| 29 |
|
|
extern int charstatus_destroy(t_charstatus * c, t_elem ** curr);
|
| 30 |
|
|
extern t_charstatus * charstatus_list_find_charstatus_by_charname(char const * charname);
|
| 31 |
|
|
|
| 32 |
|
|
#endif
|