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

Contents of /ircd-hybrid-7.2/include/watch.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1013 - (show annotations)
Sun Oct 18 14:26:49 2009 UTC (10 years, 1 month ago) by michael
File MIME type: text/x-csrc
File size: 1834 byte(s)
- Add -Wextra -Wcast-align -Wbad-function-cast to CFLAGS if --enable-warnings is specified
- Fixed several compile warnings
- 64-bit cleanliness fixes, e.g., reorganize data structures to reduce storage/unnecessary padding

1 /*
2 * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3 *
4 * Copyright (C) 1997 Jukka Santala (Donwulff)
5 * Copyright (C) 2005 by the 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
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 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 * USA
21 */
22
23 /*! \file watch.h
24 * \brief Header including structures and prototypes for WATCH support
25 * \version $Id$
26 */
27
28 #ifndef INCLUDED_watch_h
29 #define INCLUDED_watch_h
30
31 /*! \brief Watch structure */
32 struct Watch
33 {
34 dlink_node node; /**< Embedded dlink_node used to link into watchTable */
35 dlink_list watched_by; /**< list of clients that have this
36 entry on their watch list */
37 time_t lasttime; /**< last time the client was seen */
38 char nick[NICKLEN]; /**< nick name of the client to watch */
39 };
40
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);
45 extern void watch_del_watch_list(struct Client *);
46 extern void watch_count_memory(unsigned int *const, uint64_t *const);
47 extern struct Watch *watch_find_hash(const char *);
48 #endif

Properties

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

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