X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fconfig%2Flocalfile-config.h;h=8d17c4e5cd5f79a72e56dd657e1ddb34cf9ae16c;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=27147997da28be5d9a41f2b5b7ae8094e2f2cb21;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/config/localfile-config.h b/src/config/localfile-config.h old mode 100755 new mode 100644 index 2714799..8d17c4e --- a/src/config/localfile-config.h +++ b/src/config/localfile-config.h @@ -1,61 +1,58 @@ -/* $OSSEC, localfile-config.h, v0.3, 2005/11/11, Daniel B. Cid$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ - - #ifndef __CLOGREADER_H - #define __CLOGREADER_H -#define EVENTLOG "eventlog" -#define VCHECK_FILES 64 +#define EVENTLOG "eventlog" +#define EVENTCHANNEL "eventchannel" +#define VCHECK_FILES 64 #define DATE_MODIFIED 1 - /* For ino_t */ #include - /* Logreader config */ -typedef struct _logreader -{ - unsigned int size; +typedef struct _logreader { + off_t size; int ign; - - #ifdef WIN32 + +#ifdef WIN32 HANDLE h; - int fd; - #else + DWORD fd; +#else ino_t fd; - #endif - - - /* ffile - format file is only used when +#endif + + /* ffile - format file is only used when * the file has format string to retrieve * the date, - */ - char *ffile; + */ + char *ffile; char *file; char *logformat; char *djb_program_name; char *command; + char *alias; + char future; + char *query; - void (*read)(int i, int *rc, int drop_it); + void *(*read)(int i, int *rc, int drop_it); FILE *fp; -}logreader; +} logreader; -typedef struct _logreader_config -{ +typedef struct _logreader_config { + int agent_cfg; + int accept_remote; logreader *config; -}logreader_config; +} logreader_config; + +#endif /* __CLOGREADER_H */ -#endif