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