Imported Upstream version 2.5.1
[ossec-hids.git] / src / win32 / setup-shared.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 #include <stdio.h>
14 #include <stdlib.h>
15 #include <string.h>
16 #include <unistd.h>
17 #include <sys/types.h>
18 #include <dirent.h>
19 #include <time.h>
20 #include <windows.h>
21 #include "os_regex/os_regex.h"
22 #include "headers/file_op.h"
23
24 #define OSSECCONF   "ossec.conf"
25 #define OSSECDEF    "default-ossec.conf"
26 #define OSSECLAST   "ossec.conf.bak"
27 #define CLIENTKEYS  "client.keys"
28 #define OS_MAXSTR   1024
29
30
31 /* Checks if a file exist. */
32 int fileexist(char *file);
33
34 /* Grep for a string in a file. */
35 int dogrep(char *file, char *str);
36
37 /* Check if dir exists */
38 int direxist(char *dir);
39
40 /* Get Windows main directory */
41 void get_win_dir(char *file, int f_size);
42
43
44 /* EOF */