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