aboutsummaryrefslogtreecommitdiff
path: root/ircd/s_conf_ext.h
blob: 8257254431154d4d15f61fb5524230da33d16e0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/************************************************************************
 *   IRC - Internet Relay Chat, ircd/s_conf_ext.h
 *   Copyright (C) 1997 Alain Nissen
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 1, or (at your option)
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*  This file contains external definitions for global variables and functions
    defined in ircd/s_conf.c.
 */

/*  External definitions for global variables.
 */
#ifndef S_CONF_C
extern aConfItem *conf, *kconf;
#endif /* S_CONF_C */

/*  External definitions for global functions.
 */
#ifndef S_CONF_C
#define EXTERN extern
#else /* S_CONF_C */
#define EXTERN
#endif /* S_CONF_C */
EXTERN void det_confs_butmask __P((aClient *cptr, int mask));
EXTERN int attach_Iline __P((aClient *cptr, Reg struct hostent *hp,
			     char *sockhost));
EXTERN aConfItem *count_cnlines __P((Reg Link *lp));
EXTERN int detach_conf __P((aClient *cptr, aConfItem *aconf));
EXTERN int attach_conf __P((aClient *cptr, aConfItem *aconf));
EXTERN aConfItem *find_admin();
EXTERN aConfItem *find_me();
EXTERN aConfItem *attach_confs __P((aClient *cptr, char *name, int statmask));
EXTERN aConfItem *attach_confs_host __P((aClient *cptr, char *host,
					 int statmask));
EXTERN aConfItem *find_conf_exact __P((char *name, char *user, char *host,
				       int statmask));
EXTERN aConfItem *find_conf_name __P((char *name, int statmask));
EXTERN aConfItem *find_conf __P((Link *lp, char *name, int statmask));
EXTERN aConfItem *find_conf_host __P((Reg Link *lp, char *host,
				      Reg int statmask));
EXTERN aConfItem *find_conf_ip __P((Link *lp, char *ip, char *user,
				    int statmask));
EXTERN aConfItem *find_conf_entry __P((aConfItem *aconf, u_int mask));
EXTERN int rehash __P((aClient *cptr, aClient *sptr, int sig));
EXTERN int openconf();
EXTERN int initconf __P((int opt));
EXTERN int find_kill __P((aClient *cptr, int doall, char **comment));
EXTERN int find_two_masks __P((char *name, char *host, int stat));
EXTERN int find_conf_flags __P((char *name, char *key, int stat));
EXTERN int find_restrict __P((aClient *cptr));
EXTERN void find_bounce __P((aClient *cptr, int class, int fd));
EXTERN aConfItem *find_denied __P((char *name, int class));
#undef EXTERN