Imported Upstream version 2.7
[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 VCHECK_FILES    64
20 #define DATE_MODIFIED   1
21
22
23 /* For ino_t */
24 #include <sys/types.h>
25
26
27 /* Logreader config */
28 typedef struct _logreader
29 {
30     unsigned int size;
31     int ign;
32
33     #ifdef WIN32
34     HANDLE h;
35     int fd;
36     #else
37     ino_t fd;
38     #endif
39
40
41     /* ffile - format file is only used when
42      * the file has format string to retrieve
43      * the date,
44      */
45     char *ffile;
46     char *file;
47     char *logformat;
48     char *djb_program_name;
49     char *command;
50     char *alias;
51         
52     void (*read)(int i, int *rc, int drop_it);
53
54     FILE *fp;
55 }logreader;
56
57 typedef struct _logreader_config
58 {
59     int agent_cfg;
60     int accept_remote;
61     logreader *config;
62 }logreader_config;
63
64 #endif