1 /* @(#) $Id: ./src/os_execd/execd.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
12 * More details at the LICENSE file included with OSSEC or
13 * online at http://www.ossec.net/en/licensing.html .
21 #define ARGV0 "ossec-execd"
25 /* Add/delete arguments for the commands */
26 #define ADD_ENTRY "add"
27 #define DELETE_ENTRY "delete"
30 /* Maximum number of active responses active */
34 /* Maximum number of command arguments */
38 /* Execd select timeout -- in seconds */
39 #define EXECD_TIMEOUT 90
43 /** Function prototypes **/
45 void ExecdStart(int queue);
47 void WinExecdRun(char *exec_msg);
51 char *GetCommandbyName(char *name, int *timeout);
53 void ExecCmd(char **cmd);
55 void ExecCmd_Win32(char *cmd);
57 int ExecdConfig(char * cfgfile);
61 void WinTimeoutRun(int timeout);
63 void FreeTimeoutEntry(void *timeout_entry);