]> jfr.im git - solanum.git/blobdiff - include/ircd.h
modularize usermode +R (registered users only)
[solanum.git] / include / ircd.h
index ec8192ba94d329a92e6f8fdf47676edbbb1e6eda..28df4d5b3560baf3e1a3c20f3438216beb966ece 100644 (file)
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
- *
- *  $Id: ircd.h 1851 2006-08-24 17:16:53Z jilles $
  */
 
 #ifndef INCLUDED_ircd_h
 #define INCLUDED_ircd_h
 
-#include "config.h"
+#include "defaults.h"
 
 struct Client;
 struct rb_dlink_list;
@@ -61,26 +59,24 @@ extern struct SetOptions GlobalSetOptions;  /* defined in ircd.c */
 
 extern const char *creation;
 extern const char *generation;
-extern const char *platform;
 extern const char *infotext[];
 extern const char *serno;
+extern const unsigned long int datecode;
 extern const char *ircd_version;
 extern const char *logFileName;
 extern const char *pidFileName;
-extern int cold_start;
-extern int dorehash;
-extern int dorehashbans;
-extern int doremotd;
-extern int kline_queued;
-extern int server_state_foreground;
-extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without
-                                  accountability, etc */
+extern volatile sig_atomic_t dorehash;
+extern volatile sig_atomic_t dorehashbans;
+extern volatile sig_atomic_t doremotd;
+extern bool kline_queued;
+extern bool server_state_foreground;
+extern bool opers_see_all_users; /* sno_farconnect.so loaded, operspy without
+                                   accountability, etc */
 
 extern struct Client me;
 extern rb_dlink_list global_client_list;
 extern struct Client *local[];
 extern struct Counter Count;
-extern struct timeval SystemTime;
 extern int default_server_capabs;
 
 extern time_t startup_time;
@@ -99,19 +95,14 @@ extern rb_dlink_list local_oper_list;
 extern rb_dlink_list oper_list;
 extern rb_dlink_list dead_list;
 
-extern rb_bh *channel_heap;
-extern rb_bh *ban_heap;
-extern rb_bh *topic_heap;
-extern rb_bh *member_heap;
-
 extern int testing_conf;
 
 extern struct ev_entry *check_splitmode_ev;
 
-extern int ssl_ok;
-extern int zlib_ok;
+extern bool ircd_ssl_ok;
+extern bool ircd_zlib_ok;
 extern int maxconnections;
 
-void ircd_shutdown(const char *reason);
+void ircd_shutdown(const char *reason) __attribute__((noreturn));
 
 #endif