This commit was generated by cvs2svn to compensate for changes in r2,
[ircu2.10.12-pk.git] / include / userload.h
1 /*
2  * Userload module by Michael L. VanLoon (mlv) <michaelv@iastate.edu>
3  * Written 2/93.  Originally grafted into irc2.7.2g 4/93.
4  * Rewritten 9/97 by Carlo Wood for ircu2.10.01.
5  *
6  * IRC - Internet Relay Chat, ircd/userload.h
7  * Copyright (C) 1990 University of Oulu, Computing Center
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 1, or (at your option)
12  * any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23
24 #ifndef USERLOAD_H
25 #define USERLOAD_H
26
27 /*=============================================================================
28  * Structures
29  */
30
31 struct current_load_st {
32   unsigned int client_count;
33   unsigned int local_count;
34   unsigned int conn_count;
35 };
36
37 /*=============================================================================
38  * Proto types
39  */
40
41 extern void update_load(void);
42 extern void calc_load(aClient *sptr);
43 extern void initload(void);
44
45 extern struct current_load_st current_load;
46
47 #endif /* USERLOAD_H */