1 /* @(#) $Id: ./src/win32/setup-shared.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 <sys/types.h>
22 #include "os_regex/os_regex.h"
23 #include "headers/file_op.h"
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
32 /* Checks if a file exist. */
33 int fileexist(char *file);
35 /* Grep for a string in a file. */
36 int dogrep(char *file, char *str);
38 /* Check if dir exists */
39 int direxist(char *dir);
41 /* Get Windows main directory */
42 void get_win_dir(char *file, int f_size);