From 703d463b229852de8ac6b1493162ee80513b6dd9 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 13 Jul 2007 07:15:40 +0000 Subject: shuffled more defintions; defined new type msg_t for struct msg --- syslogd-types.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'syslogd-types.h') diff --git a/syslogd-types.h b/syslogd-types.h index 0261d6b6..ae0f8a7e 100644 --- a/syslogd-types.h +++ b/syslogd-types.h @@ -152,8 +152,24 @@ struct msg { char *pszTIMESTAMP_MySQL;/* TIMESTAMP as MySQL formatted string (always 14 charcters) */ int msgFlags; /* flags associated with this message */ }; +typedef struct msg msg_t; /* new name */ +/* values for f_type in struct filed below*/ +#define F_UNUSED 0 /* unused entry */ +#define F_FILE 1 /* regular file */ +#define F_TTY 2 /* terminal */ +#define F_CONSOLE 3 /* console terminal */ +#define F_FORW 4 /* remote machine */ +#define F_USERS 5 /* list of users */ +#define F_WALL 6 /* everyone logged on */ +#define F_FORW_SUSP 7 /* suspended host forwarding */ +#define F_FORW_UNKN 8 /* unknown host forwarding */ +#define F_PIPE 9 /* named pipe */ +#define F_MYSQL 10 /* MySQL database */ +#define F_DISCARD 11 /* discard event (do not process any further selector lines) */ +#define F_SHELL 12 /* execute a shell */ + /* This structure represents the files that will have log * copies printed. * RGerhards 2004-11-08: Each instance of the filed structure -- cgit