| 29 |
|
#include "client.h" |
| 30 |
|
#include "config.h" |
| 31 |
|
|
| 32 |
+ |
|
| 33 |
|
struct Whowas |
| 34 |
|
{ |
| 35 |
|
int hashv; |
| 36 |
|
time_t logoff; |
| 37 |
|
char name[NICKLEN]; |
| 38 |
< |
char username[USERLEN + 1]; |
| 38 |
> |
char username[USERLEN + 1]; |
| 39 |
|
char hostname[HOSTLEN + 1]; |
| 40 |
|
char realname[REALLEN + 1]; |
| 41 |
|
char servername[HOSTLEN + 1]; |
| 42 |
|
struct Client *online; /* Pointer to new nickname for chasing or NULL */ |
| 43 |
< |
struct Whowas *next; /* for hash table... */ |
| 44 |
< |
struct Whowas *prev; /* for hash table... */ |
| 44 |
< |
struct Whowas *cnext; /* for client struct linked list */ |
| 45 |
< |
struct Whowas *cprev; /* for client struct linked list */ |
| 43 |
> |
dlink_node tnode; /* for hash table... */ |
| 44 |
> |
dlink_node cnode; /* for client struct linked list */ |
| 45 |
|
}; |
| 46 |
|
|
| 47 |
|
/* |
| 48 |
|
** initwhowas |
| 49 |
|
*/ |
| 50 |
< |
extern void init_whowas(void); |
| 50 |
> |
extern void whowas_init(void); |
| 51 |
|
|
| 52 |
|
/* |
| 53 |
|
** add_history |
| 78 |
|
** for debugging...counts related structures stored in whowas array. |
| 79 |
|
*/ |
| 80 |
|
extern void count_whowas_memory(unsigned int *, uint64_t *); |
| 81 |
< |
|
| 83 |
< |
/* XXX m_whowas.c in modules needs these */ |
| 84 |
< |
extern struct Whowas *WHOWASHASH[]; |
| 81 |
> |
extern dlink_list WHOWASHASH[]; |
| 82 |
|
#endif /* INCLUDED_whowas_h */ |