b3f85e404124953aa92976d8c12e16d05d9b968a
[ossec-hids.git] / src / headers / file-queue.h
1 /* @(#) $Id$ */
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 __CFQUEUE_H
15 #define __CFQUEUE_H
16
17 #define MAX_FQUEUE  256
18 #define FQ_TIMEOUT  5
19
20 /* File queue */
21 typedef struct _file_queue
22 {
23     int last_change;
24     int year;
25     int day;
26     int flags;
27     
28     char mon[4];
29     char file_name[MAX_FQUEUE +1];
30     
31     FILE *fp;
32     struct stat f_status;
33 }file_queue;
34
35
36 /*** Prototypes */
37 #include "read-alert.h"
38 int Init_FileQueue(file_queue *fileq, struct tm *p, int flags);
39
40 alert_data *Read_FileMon(file_queue *fileq, struct tm *p, int timeout);
41
42 #endif