aboutsummaryrefslogtreecommitdiff
path: root/ircd/list_ext.h
blob: db3f2456274fc141b0916f2d3d14fb17713b364d (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/list_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/list.c.
 */

/*  External definitions for global variables.
 */
#ifndef LIST_C
extern anUser *usrtop;
extern aServer *svrtop;
extern int numclients;
extern const char *DefInfo;
#endif /* LIST_C */

/*  External definitions for global functions.
 */
#ifndef LIST_C
#define EXTERN extern
#else /* LIST_C */
#define EXTERN
#endif /* LIST_C */
EXTERN void initlists();
EXTERN void outofmemory();
#ifdef	DEBUGMODE
EXTERN void checklists();
EXTERN void send_listinfo __P((aClient *cptr, char *name));
#endif /* DEBUGMOE */
EXTERN aClient *make_client __P((aClient *from));
EXTERN void free_client __P((aClient *cptr));
EXTERN anUser *make_user __P((aClient *cptr));
EXTERN aServer *make_server __P((aClient *cptr));
EXTERN void free_user __P((Reg anUser *user, aClient *cptr));
EXTERN void free_server __P((aServer *serv, aClient *cptr));
EXTERN void remove_client_from_list __P((Reg aClient *cptr));
EXTERN void reorder_client_in_list __P((aClient *cptr));
EXTERN void add_client_to_list __P((aClient *cptr));
EXTERN Link *find_user_link __P((Reg Link *lp, Reg aClient *ptr));
EXTERN Link *find_channel_link __P((Reg Link *lp, Reg aChannel *ptr));
EXTERN Link *make_link();
EXTERN void free_link __P((Reg Link *lp));
EXTERN aClass *make_class();
EXTERN void free_class __P((Reg aClass *tmp));
EXTERN aConfItem *make_conf();
EXTERN void delist_conf __P((aConfItem *aconf));
EXTERN void free_conf __P((aConfItem *aconf));
EXTERN void add_fd __P((int fd, FdAry *ary));
EXTERN int del_fd __P((int fd, FdAry *ary));
#undef EXTERN