1 /* @(#) $Id: ./src/client-agent/agentd.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
13 /* Part of the OSSEC HIDS
14 * Available at http://www.ossec.net/hids/
22 #include "config/config.h"
23 #include "config/client-config.h"
26 /*** Function Prototypes ***/
28 /* Client configuration */
29 int ClientConf(char *cfgfile);
31 /* Agentd init function */
32 void AgentdStart(char *dir, int uid, int gid, char *user, char *group);
37 /* Receiver messages */
40 /* Receiver messages for Windows */
41 void *receiver_thread(void *none);
44 * Sends integrity checking information about a file to the server.
46 int intcheck_file(char *file_name, char *dir);
48 /* Sends message to server */
49 int send_msg(int agentid, char *msg);
51 /* Extract the shared files */
52 char *getsharedfiles();
54 /* Initializes handshake to server */
55 void start_agent(int is_startup);
57 /* Connects to the server. */
58 int connect_server(int initial_id);
64 /*** Global variables ***/
66 /* Global variables. Only modified