1 /* @(#) $Id: execd.h,v 1.12 2009/06/24 17:06:30 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
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 3) as published by the FSF - Free Software
11 * More details at the LICENSE file included with OSSEC or
12 * online at http://www.ossec.net/en/licensing.html .
19 #define ARGV0 "ossec-execd"
23 /* Add/delete arguments for the commands */
24 #define ADD_ENTRY "add"
25 #define DELETE_ENTRY "delete"
28 /* Maximum number of active responses active */
32 /* Maximum number of command arguments */
36 /* Execd select timeout -- in seconds */
37 #define EXECD_TIMEOUT 90
41 /** Function prototypes **/
43 void ExecdStart(int queue);
45 void WinExecdRun(char *exec_msg);
49 char *GetCommandbyName(char *name, int *timeout);
51 void ExecCmd(char **cmd);
53 void ExecCmd_Win32(char *cmd);
55 int ExecdConfig(char * cfgfile);
59 void WinTimeoutRun(int timeout);
61 void FreeTimeoutEntry(void *timeout_entry);