X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fclient-agent%2Fagentd.h;h=912c73e5cbc629e90cb0bfc25c914156d97fa647;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=c2b9dd10ed192ed6a380972b41f7f5c74d4f3379;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;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 c2b9dd1..912c73e --- a/src/client-agent/agentd.h +++ b/src/client-agent/agentd.h @@ -1,78 +1,64 @@ -/* @(#) $Id: agentd.h,v 1.26 2009/06/24 17:06:24 dcid Exp $ */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * 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 */