1 |
/* Copyright (C) 2003 Stephane Thiell |
2 |
* |
3 |
* This file is part of pxyservd (from pxys) |
4 |
* |
5 |
* This program is free software; you can redistribute it and/or |
6 |
* modify it under the terms of the GNU General Public License |
7 |
* as published by the Free Software Foundation; either version 2 |
8 |
* of the License, or (at your option) any later version. |
9 |
* |
10 |
* This program is distributed in the hope that it will be useful, |
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 |
* GNU General Public License for more details. |
14 |
* |
15 |
* You should have received a copy of the GNU General Public License |
16 |
* along with this program; if not, write to the Free Software |
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 |
* |
19 |
* $Id: irc_userbase.h,v 1.1.1.1 2003/12/30 17:09:32 mbuna Exp $ |
20 |
*/ |
21 |
#ifndef INCLUDED_IRC_USERBASE_H |
22 |
#define INCLUDED_IRC_USERBASE_H |
23 |
|
24 |
#include "irc_struct.h" |
25 |
|
26 |
extern smat_head_t sUSmatHead; |
27 |
|
28 |
extern void irc_userbase_init(void); |
29 |
extern void irc_userbase_finalize(void); |
30 |
|
31 |
extern int irc_userbase_get_count(void); |
32 |
extern size_t irc_userbase_get_hash_table_size(); |
33 |
extern int irc_userbase_proxycount(const struct in_addr *addr); |
34 |
extern unsigned int irc_userbase_count_channels(struct Client *cptr); |
35 |
|
36 |
extern void irc_userbase_add(const char *nick, const char *user, |
37 |
time_t firsttime, const char *mode, |
38 |
unsigned int flags, ClientAddr addr, |
39 |
const char *numnick); |
40 |
extern void irc_userbase_nick_change(const char *numnick, |
41 |
const char *new_nick); |
42 |
extern void irc_userbase_remove(const char *numnick); |
43 |
extern void irc_userbase_purgeserv(struct Server *sptr); |
44 |
extern struct Client * irc_userbase_get_by_nick(const char *nick); |
45 |
|
46 |
|
47 |
#endif /* INCLUDED_IRC_USERBASE_H */ |