1 /* @(#) $Id: ./src/syscheckd/syscheck.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
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
18 #include "config/syscheck-config.h"
19 #define MAX_LINE PATH_MAX+256
21 /* Notify list size */
22 #define NOTIFY_LIST_SIZE 32
29 /** Function Prototypes **/
31 /* run_check: checks the integrity of the files against the
37 /* start_daemon: Runs run_check periodically.
42 /* Read the XML config */
43 int Read_Syscheck_Config(char * cfgfile);
46 /* create the database */
51 * Checks database for changes.
55 /** void os_winreg_check()
56 * Checks the registry for changes.
58 void os_winreg_check();
60 /* starts real time */
63 /* Adds a directory to real time monitoring. */
64 int realtime_adddir(char *dir);
66 /* Process real time queue. */
67 int realtime_process();
69 /* Process the content of the file changes. */
70 char *seechanges_addfile(char *filename);
72 /* get checksum changes. */
73 int c_read_file(char *file_name, char *oldsum, char *newsum);
75 /** Sends syscheck message.
77 int send_syscheck_msg(char *msg);
78 int send_rootcheck_msg(char *msg);