X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fclient-agent%2Fagentd.h;h=912c73e5cbc629e90cb0bfc25c914156d97fa647;hb=refs%2Fheads%2Fmaster;hp=dfd220cf7f483696bf581ad587fc8b071ceb30ae;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/client-agent/agentd.h b/src/client-agent/agentd.h old mode 100755 new mode 100644 index dfd220c..912c73e --- a/src/client-agent/agentd.h +++ b/src/client-agent/agentd.h @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -9,70 +7,58 @@ * Foundation */ -/* Part of the OSSEC HIDS - * Available at http://www.ossec.net/hids/ - */ - - #ifndef __AGENTD_H - #define __AGENTD_H #include "config/config.h" #include "config/client-config.h" - /*** Function Prototypes ***/ /* Client configuration */ -int ClientConf(char *cfgfile); +int ClientConf(const char *cfgfile); /* Agentd init function */ -void AgentdStart(char *dir, int uid, int gid, char *user, char *group); +void AgentdStart(const char *dir, int uid, int gid, const char *user, const char *group) __attribute__((noreturn)); /* Event Forwarder */ -void *EventForward(); +void *EventForward(void); /* Receiver messages */ -void *receive_msg(); +void *receive_msg(void); /* Receiver messages for Windows */ void *receiver_thread(void *none); -/* intcheck_file: - * Sends integrity checking information about a file to the server. - */ -int intcheck_file(char *file_name, char *dir); +/* Send integrity checking information about a file to the server */ +int intcheck_file(const char *file_name, const char *dir); -/* Sends message to server */ -int send_msg(int agentid, char *msg); +/* Send message to server */ +int send_msg(int agentid, const char *msg); /* Extract the shared files */ -char *getsharedfiles(); +char *getsharedfiles(void); -/* Initializes handshake to server */ +/* Initialize handshake to server */ void start_agent(int is_startup); -/* Connects to the server. */ +/* Connect to the server */ int connect_server(int initial_id); -/* notify server */ -void run_notify(); - +/* Notify server */ +void run_notify(void); /*** Global variables ***/ -/* Global variables. Only modified - * during startup. - */ +/* Global variables. Only modified during startup. */ #include "shared.h" #include "sec.h" -int available_server; -keystore keys; -agent *logr; +extern time_t available_server; +extern int run_foreground; +extern keystore keys; +extern agent *agt; +#endif /* __AGENTD_H */ -#endif -/* EOF */