#include "memoryDebug.h"
#endif
+#define PID_FILE "neonserv.pid"
+#define CONF_FILE "neonserv.conf"
+#define LOG_FILE "neonserv.log"
+
#define SOCKET_SELECT_TIME 1
#define SOCKET_RECONNECT_TIME 20
#define TOPICLEN 500
#define CHANNELLEN 200
#define MAXLEN 512
+#define MAXLOGLEN 1024
#define TRIGGERLEN 50
#define MAXNUMPARAMS 200 /* maximum number of parameters in one line */
#define MAXLANGUAGES 5
#define TEMPUSER_LIST_INDEX VALID_NICK_CHARS_FIRST_LEN
+#define LOGLEVEL_INFO 0x01
+#define LOGLEVEL_ERROR 0x02
+#define LOGLEVEL_RAW 0x04
+#define LOGLEVEL_MYSQL 0x08
+
#define timeval_is_bigger(x,y) ((x.tv_sec > y.tv_sec) || (x.tv_sec == y.tv_sec && x.tv_usec > y.tv_usec))
extern time_t start_time;
int getCurrentThreadID();
#endif
+void exit_daemon();
+
int stricmp (const char *s1, const char *s2);
int stricmplen (const char *s1, const char *s2, int len);
void statistics_update();
+void putlog(int loglevel, const char *text, ...) PRINTF_LIKE(2, 3);
+
+#define perror(errmsg) (putlog(LOGLEVEL_ERROR, "ERROR (%s:%d) %s", __FILE__, __LINE__, errmsg))
+
#endif
\ No newline at end of file