new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / file-queue.h
1 /* Copyright (C) 2009 Trend Micro Inc.
2  * All right reserved.
3  *
4  * This program is a free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General Public
6  * License (version 2) as published by the FSF - Free Software
7  * Foundation
8  */
9
10 #ifndef __CFQUEUE_H
11 #define __CFQUEUE_H
12
13 #define MAX_FQUEUE  256
14 #define FQ_TIMEOUT  5
15
16 /* File queue */
17 typedef struct _file_queue {
18     time_t last_change;
19     int year;
20     int day;
21     int flags;
22
23     char mon[4];
24     char file_name[MAX_FQUEUE + 1];
25
26     FILE *fp;
27     struct stat f_status;
28 } file_queue;
29
30 #include "read-alert.h"
31 int Init_FileQueue(file_queue *fileq, const struct tm *p, int flags) __attribute__((nonnull));
32
33 alert_data *Read_FileMon(file_queue *fileq, const struct tm *p, unsigned int timeout) __attribute__((nonnull));
34
35 #endif /* __CFQUEUE_H */
36