new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / win32 / setup-shared.h
1 /* Copyright (C) 2009 Trend Micro Inc.
2  * All rights reserved.
3  *
4  * This program is a free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General Public
6  * License (version 2) as published by the FSF - Free Software
7  * Foundation
8  */
9
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
13 #include <unistd.h>
14 #include <sys/types.h>
15 #include <dirent.h>
16 #include <time.h>
17 #include <windows.h>
18 #include "os_regex/os_regex.h"
19 #include "headers/file_op.h"
20
21 #define OSSECCONF   "ossec.conf"
22 #define OSSECDEF    "default-ossec.conf"
23 #define OSSECLAST   "ossec.conf.bak"
24 #define CLIENTKEYS  "client.keys"
25 #define OS_MAXSTR   1024
26
27
28 /* Check if a file exists */
29 int fileexist(char *file);
30
31 /* Grep for a string in a file */
32 int dogrep(char *file, char *str);
33
34 /* Check if dir exists */
35 int direxist(char *dir);
36
37 /* Get Windows main directory */
38 void get_win_dir(char *file, int f_size);