Imported Upstream version 2.5.1
[ossec-hids.git] / src / headers / read-alert.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 __CRALERT_H
15 #define __CRALERT_H
16
17 #define CRALERT_MAIL_SET    0x001 
18 #define CRALERT_EXEC_SET    0x002
19 #define CRALERT_READ_ALL    0x004
20 #define CRALERT_FP_SET      0x010
21
22
23 /* File queue */
24 typedef struct _alert_data
25 {
26     int rule;
27     int level;
28     char *date;
29     char *location;
30     char *comment;
31     char *group;
32     char *srcip;
33     char *user;
34     char **log;
35 }alert_data;
36
37
38 alert_data *GetAlertData(int flag, FILE *fp);
39 void FreeAlertData(alert_data *al_data);
40
41
42 #endif