1 /* Copyright (C) 2009 Trend Micro Inc. 2 * All right reserved. 3 * 4 * This program is a free software; you can redistribute it 5 * and/or modify it under the terms of the GNU General Public 6 * License (version 2) as published by the FSF - Free Software 7 * Foundation 8 */ 9 10 #ifndef __CLOGREADER_H 11 #define __CLOGREADER_H 12 13 #define EVENTLOG "eventlog" 14 #define EVENTCHANNEL "eventchannel" 15 #define VCHECK_FILES 64 16 #define DATE_MODIFIED 1 17 18 /* For ino_t */ 19 #include <sys/types.h> 20 21 /* Logreader config */ 22 typedef struct _logreader { 23 off_t size; 24 int ign; 25 26 #ifdef WIN32 27 HANDLE h; 28 DWORD fd; 29 #else 30 ino_t fd; 31 #endif 32 33 /* ffile - format file is only used when 34 * the file has format string to retrieve 35 * the date, 36 */ 37 char *ffile; 38 char *file; 39 char *logformat; 40 char *djb_program_name; 41 char *command; 42 char *alias; 43 char future; 44 char *query; 45 46 void *(*read)(int i, int *rc, int drop_it); 47 48 FILE *fp; 49 } logreader; 50 51 typedef struct _logreader_config { 52 int agent_cfg; 53 int accept_remote; 54 logreader *config; 55 } logreader_config; 56 57 #endif /* __CLOGREADER_H */ 58 59