Imported Upstream version 2.5.1
[ossec-hids.git] / src / os_execd / execd.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  * More details at the LICENSE file included with OSSEC or
12  * online at http://www.ossec.net/en/licensing.html .
13  */
14
15
16 #ifndef _EXECD_H
17
18 #ifndef ARGV0
19 #define ARGV0 "ossec-execd"
20 #endif
21
22
23 /* Add/delete arguments for the commands */
24 #define ADD_ENTRY       "add"
25 #define DELETE_ENTRY    "delete"
26
27
28 /* Maximum number of active responses active */
29 #define MAX_AR      64
30
31
32 /* Maximum number of command arguments */
33 #define MAX_ARGS    32 
34
35
36 /* Execd select timeout -- in seconds */
37 #define EXECD_TIMEOUT   90
38
39
40
41 /** Function prototypes **/
42
43 void ExecdStart(int queue);
44
45 void WinExecdRun(char *exec_msg);
46
47 int ReadExecConfig();
48
49 char *GetCommandbyName(char *name, int *timeout);
50
51 void ExecCmd(char **cmd);
52
53 void ExecCmd_Win32(char *cmd);
54
55 int ExecdConfig(char * cfgfile);
56
57 int WinExecd_Start();
58
59 void WinTimeoutRun(int timeout);
60
61 void FreeTimeoutEntry(void *timeout_entry);
62
63
64
65 #define _EXECD_H
66
67 #endif