1 |
|
/* |
2 |
< |
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). |
2 |
> |
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
3 |
|
* |
4 |
< |
* Copyright (C) 1997 Jukka Santala (Donwulff) |
5 |
< |
* Copyright (C) 2005 by the Hybrid Development Team. |
4 |
> |
* Copyright (c) 1997 Jukka Santala (Donwulff) |
5 |
> |
* Copyright (c) 2005-2018 ircd-hybrid development team |
6 |
|
* |
7 |
|
* This program is free software; you can redistribute it and/or modify |
8 |
|
* it under the terms of the GNU General Public License as published by |
16 |
|
* |
17 |
|
* You should have received a copy of the GNU General Public License |
18 |
|
* along with this program; if not, write to the Free Software |
19 |
< |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
19 |
> |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 |
20 |
|
* USA |
21 |
|
*/ |
22 |
|
|
28 |
|
#ifndef INCLUDED_watch_h |
29 |
|
#define INCLUDED_watch_h |
30 |
|
|
31 |
+ |
|
32 |
|
/*! \brief Watch structure */ |
33 |
|
struct Watch |
34 |
|
{ |
35 |
< |
dlink_node node; /**< Embedded dlink_node used to link into watchTable */ |
36 |
< |
dlink_list watched_by; /**< list of clients that have this |
35 |
> |
dlink_node node; /**< Embedded dlink_node used to link into watchTable */ |
36 |
> |
dlink_list watched_by; /**< List of clients that have this |
37 |
|
entry on their watch list */ |
38 |
< |
time_t lasttime; /**< last time the client was seen */ |
39 |
< |
char nick[NICKLEN]; /**< nick name of the client to watch */ |
38 |
> |
uintmax_t lasttime; /**< Last time the client was seen */ |
39 |
> |
char name[NICKLEN + 1]; /**< Name of the client to watch */ |
40 |
|
}; |
41 |
|
|
41 |
– |
extern void watch_init(void); |
42 |
|
extern void watch_add_to_hash_table(const char *, struct Client *); |
43 |
|
extern void watch_del_from_hash_table(const char *, struct Client *); |
44 |
< |
extern void watch_check_hash(struct Client *, int); |
44 |
> |
extern void watch_check_hash(const struct Client *, const enum irc_numerics); |
45 |
|
extern void watch_del_watch_list(struct Client *); |
46 |
< |
extern void watch_count_memory(unsigned int *const, uint64_t *const); |
46 |
> |
extern void watch_count_memory(unsigned int *const, size_t *const); |
47 |
|
extern struct Watch *watch_find_hash(const char *); |
48 |
|
#endif |