ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/include/whowas.h
Revision: 194
Committed: Thu Oct 27 18:56:46 2005 UTC (20 years, 9 months ago) by michael
Content type: text/x-chdr
File size: 2345 byte(s)
Log Message:
- Fixed several compiletime warnings

File Contents

# User Rev Content
1 adx 30 /*
2     * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
3     * whowas.h: Header for the whowas functions.
4     *
5     * Copyright (C) 2002 by the past and present ircd coders, and others.
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 knight 31 * $Id$
23 adx 30 */
24    
25     #ifndef INCLUDED_whowas_h
26     #define INCLUDED_whowas_h
27    
28     #include "ircd_defs.h"
29     #include "client.h"
30     #include "setup.h"
31    
32     struct Whowas
33     {
34     int hashv;
35     time_t logoff;
36     char name[NICKLEN];
37     char username[USERLEN + 1];
38     char hostname[HOSTLEN + 1];
39     char realname[REALLEN + 1];
40     char servername[HOSTLEN + 1];
41     struct Client *online; /* Pointer to new nickname for chasing or NULL */
42 michael 191 dlink_node tnode; /* for hash table... */
43     dlink_node cnode; /* for client struct linked list */
44 adx 30 };
45    
46     /*
47     ** initwhowas
48     */
49 michael 192 EXTERN void init_whowas(void);
50 adx 30
51     /*
52     ** add_history
53     ** Add the currently defined name of the client to history.
54     ** usually called before changing to a new name (nick).
55     ** Client must be a fully registered user.
56     */
57 adx 190 EXTERN void add_history(struct Client *, int);
58 adx 30
59     /*
60     ** off_history
61     ** This must be called when the client structure is about to
62     ** be released. History mechanism keeps pointers to client
63     ** structures and it must know when they cease to exist. This
64     ** also implicitly calls AddHistory.
65     */
66 adx 190 EXTERN void off_history(struct Client *);
67 adx 30
68     /*
69     ** get_history
70     ** Return the current client that was using the given
71     ** nickname within the timelimit. Returns NULL, if no
72     ** one found...
73     */
74 adx 190 EXTERN struct Client *get_history(const char *, time_t);
75 adx 30
76     /* XXX m_whowas.c in modules needs these */
77 michael 194 EXTERN dlink_list WHOWASHASH[];
78 adx 30 #endif /* INCLUDED_whowas_h */

Properties

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