ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/ircd.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/ircd.h (file contents):
Revision 5507 by michael, Mon Feb 9 19:19:41 2015 UTC vs.
Revision 5602 by michael, Mon Feb 23 21:04:46 2015 UTC

# Line 32 | Line 32
32   #include "config.h"
33  
34  
35 < struct
35 > struct SetOptions
36   {
37    unsigned int maxclients;
38    unsigned int autoconn;      /* autoconn enabled for all servers? */
# Line 42 | Line 42 | struct
42    unsigned int ident_timeout; /* timeout for identd lookups        */
43    int spam_num;
44    unsigned int spam_time;
45 < } GlobalSetOptions;
45 > };
46  
47   /*
48   * statistics structures
# Line 70 | Line 70 | struct ServerStatistics
70    unsigned int    is_kill; /* number of kills generated on collisions */
71    unsigned int    is_asuc; /* successful auth requests */
72    unsigned int    is_abad; /* bad auth requests */
73 < } ServerStats;
73 > };
74  
75 < struct
75 > struct Counter
76   {
77    uint64_t totalrestartcount; /* Total client count ever */
78    unsigned int myserver;      /* my servers          */
# Line 84 | Line 84 | struct
84    unsigned int max_tot;       /* MAX global clients  */
85    unsigned int max_loc_con;   /* MAX local connection count (clients + server) */
86    unsigned int max_loc_cli;   /* XXX This is redundant - Max local client count */
87 < } Count;
87 > };
88  
89 < struct
89 > struct ServerState_t
90   {
91    unsigned int foreground;
92 < } server_state;
92 > };;
93  
94  
95   #ifdef HAVE_LIBGEOIP
# Line 103 | Line 103 | extern const char *logFileName;
103   extern const char *pidFileName;
104   extern unsigned int dorehash;
105   extern unsigned int doremotd;
106 + extern struct Counter Count;
107 + extern struct ServerStatistics ServerStats;
108 + extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
109 + extern struct ServerState_t server_state;
110   extern struct event event_write_links_file;
111   extern struct timeval SystemTime;
112   #define CurrentTime SystemTime.tv_sec

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)