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
|
#ifndef IRCD_H
#define IRCD_H
/*=============================================================================
* Macro's
*/
#define TStime() (now + TSoffset)
#define BadPtr(x) (!(x) || (*(x) == '\0'))
/* Miscellaneous defines */
#define UDP_PORT "7007"
#define MINOR_PROTOCOL "09"
#define MAJOR_PROTOCOL "10"
#define BASE_VERSION "u2.10"
/* Flags for bootup options (command line flags) */
#define BOOT_CONSOLE 1
#define BOOT_QUICK 2
#define BOOT_DEBUG 4
#define BOOT_INETD 8
#define BOOT_TTY 16
#define BOOT_OPER 32
#define BOOT_AUTODIE 64
/*=============================================================================
* Proto types
*/
#ifdef PROFIL
extern RETSIGTYPE s_monitor();
#endif
extern RETSIGTYPE s_die();
extern RETSIGTYPE s_restart();
extern void restart(char *mesg);
extern void server_reboot(void);
extern aClient me;
extern time_t now;
extern aClient *client;
extern time_t TSoffset;
extern int bootopt;
extern time_t nextdnscheck;
extern time_t nextconnect;
extern int dorehash;
extern time_t nextping;
extern int portnum;
extern char *configfile;
extern int debuglevel;
extern char *debugmode;
#endif /* IRCD_H */
|