1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
13 #include "config/config.h"
14 #include "config/client-config.h"
16 /*** Function Prototypes ***/
18 /* Client configuration */
19 int ClientConf(const char *cfgfile);
21 /* Agentd init function */
22 void AgentdStart(const char *dir, int uid, int gid, const char *user, const char *group) __attribute__((noreturn));
25 void *EventForward(void);
27 /* Receiver messages */
28 void *receive_msg(void);
30 /* Receiver messages for Windows */
31 void *receiver_thread(void *none);
33 /* Send integrity checking information about a file to the server */
34 int intcheck_file(const char *file_name, const char *dir);
36 /* Send message to server */
37 int send_msg(int agentid, const char *msg);
39 /* Extract the shared files */
40 char *getsharedfiles(void);
42 /* Initialize handshake to server */
43 void start_agent(int is_startup);
45 /* Connect to the server */
46 int connect_server(int initial_id);
49 void run_notify(void);
51 /*** Global variables ***/
53 /* Global variables. Only modified during startup. */
58 extern time_t available_server;
59 extern int run_foreground;
63 #endif /* __AGENTD_H */