2 * Copyright (C) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
3 * Helsinki University of Technology, Finland.
5 * Copyright (C) 2005 - 2007 The AROS Dev Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23 #ifndef KERN_AMIGA_LOG_H
24 #define KERN_AMIGA_LOG_H
26 #define _PATH_SYSLOG "Log/Syslog"
28 #define LOG_TASK_NAME "NETTRACE"
29 #define LOG_TASK_PRI 4
31 #define LOG_BUF_LEN 128
38 * Configuration structure
45 extern struct log_cnf log_cnf
;
48 * These are options to config log
50 #define LOG_CONFILE 0xfe000000
51 #define LOG_LOGFILE 0xfd000000
52 #define LOG_PORTOPEN 0xfc000000
53 #define LOG_PORTCLOSE 0xfb000000
54 #define LOG_CONGIF 0xff000000
57 * Magic value in Level field of SysLogPacket
59 #define LOG_GUIMSG 0xfe000000
60 #define LOG_CMDMASK 0xffff0000
62 extern struct Task
*Nettrace_Task
;
63 extern struct Process
*logProc
;
64 extern BOOL
log_init(void);
65 extern void log_deinit(void);
66 extern struct SysLogPacket
*GetLogMsg(struct MsgPort
*);
67 extern void log_msg(struct SysLogPacket
*msg
);
69 extern struct MsgPort logReplyPort
;
70 extern struct MsgPort
*logPort
;
71 extern struct SysLogPacket
*log_message
;
72 extern STRPTR consolename
, logfilename
;
73 extern struct log_cnf log_cnf
;
75 extern struct MsgPort
*ExtLogPort
;
77 /* extern void stuffchar(...);*/
79 #endif /* KERN_AMIGA_LOG_H */