Imported Upstream version 2.7
[ossec-hids.git] / src / headers / file-queue.h
1 /* @(#) $Id: ./src/headers/file-queue.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All right reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13
14
15 #ifndef __CFQUEUE_H
16 #define __CFQUEUE_H
17
18 #define MAX_FQUEUE  256
19 #define FQ_TIMEOUT  5
20
21 /* File queue */
22 typedef struct _file_queue
23 {
24     int last_change;
25     int year;
26     int day;
27     int flags;
28
29     char mon[4];
30     char file_name[MAX_FQUEUE +1];
31
32     FILE *fp;
33     struct stat f_status;
34 }file_queue;
35
36
37 /*** Prototypes */
38 #include "read-alert.h"
39 int Init_FileQueue(file_queue *fileq, struct tm *p, int flags);
40
41 alert_data *Read_FileMon(file_queue *fileq, struct tm *p, int timeout);
42
43 #endif