Imported Upstream version 2.7
[ossec-hids.git] / src / analysisd / alerts / getloglocation.h
1 /* @(#) $Id: ./src/analysisd/alerts/getloglocation.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 #ifndef __GETLL_H
15
16 #define __GETLL_H
17
18 #include "eventinfo.h"
19
20 /*
21  * Start the log location (need to be called before getlog)
22  *
23  */
24 void OS_InitLog();
25
26 void OS_InitFwLog();
27
28 /*
29  * Get the log file based on the date/logtype/
30  *
31  * @param lf        Event structure
32  *
33  * @retval 0        success
34  *         -1       error
35  */
36 int OS_GetLogLocation(Eventinfo *lf);
37
38
39 FILE *_eflog;
40 FILE *_aflog;
41 FILE *_fflog;
42
43 #endif /* GETLL_H */