Imported Upstream version 2.5.1
[ossec-hids.git] / src / monitord / monitord.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All rights 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 #ifndef _MONITORD_H
14 #define _MONITORD_H
15
16 #ifndef ARGV0
17    #define ARGV0 "ossec-monitord"
18 #endif
19
20 #include "config/reports-config.h"
21
22
23
24 /** Prototypes **/
25
26 /* Main monitord */
27 void Monitord();
28
29 /*manage_files */
30 void manage_files(int cday, int cmon, int cyear);
31
32 /* generate reports. */
33 void generate_reports(int cday, int cmon, int cyear, struct tm *p);
34
35 /* monitor_agents */
36 void monitor_agents();
37
38 /* Sign a log */
39 void OS_SignLog(char *logfile, char *logfile_old, int log_missing);
40
41 /* Compress log */
42 void OS_CompressLog(char *logfile);
43
44
45 /* Global variables */
46 monitor_config mond;
47
48
49 #endif