/[svn]/ircd-hybrid/trunk/include/watch.h
ViewVC logotype

Annotation of /ircd-hybrid/trunk/include/watch.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8917 - (hide annotations)
Sun Apr 21 22:50:42 2019 UTC (3 years, 7 months ago) by michael
File MIME type: text/x-csrc
File size: 1922 byte(s)
- Update documentation in some files

1 michael 876 /*
2 michael 2855 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 michael 876 *
4 michael 2855 * Copyright (c) 1997 Jukka Santala (Donwulff)
5 michael 8752 * Copyright (c) 2005-2019 ircd-hybrid development team
6 michael 876 *
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
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
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 michael 4565 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
20 michael 876 * USA
21     */
22    
23     /*! \file watch.h
24     * \brief Header including structures and prototypes for WATCH support
25 michael 879 * \version $Id$
26 michael 876 */
27    
28     #ifndef INCLUDED_watch_h
29     #define INCLUDED_watch_h
30    
31 michael 2855
32 michael 876 /*! \brief Watch structure */
33     struct Watch
34     {
35 michael 8437 dlink_node node; /**< List node; linked into watchTable */
36     dlink_list watched_by; /**< List of clients that have this entry on their watch list */
37 michael 8917 uintmax_t lasttime; /**< Last time the client was seen; real time */
38     unsigned int hash_value; /**< Cached hash value derived from Watch::name */
39 michael 7084 char name[NICKLEN + 1]; /**< Name of the client to watch */
40 michael 876 };
41    
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 michael 4785 extern void watch_check_hash(const struct Client *, const enum irc_numerics);
45 michael 876 extern void watch_del_watch_list(struct Client *);
46 michael 6719 extern void watch_count_memory(unsigned int *const, size_t *const);
47 michael 876 extern struct Watch *watch_find_hash(const char *);
48 michael 8437 #endif /* INCLUDED_watch_h */

Properties

Name Value
svn:eol-style native
svn:keywords Id

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28