X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Fagent_op.h;h=232cce48d386c433ef0cbf12d486c9b10e83c23e;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=9da70c2ed9b79755da37c8b9852841b465be8cf0;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/agent_op.h b/src/headers/agent_op.h old mode 100755 new mode 100644 index 9da70c2..232cce4 --- a/src/headers/agent_op.h +++ b/src/headers/agent_op.h @@ -1,62 +1,50 @@ -/* @(#) $Id: agent_op.h,v 1.3 2009/06/24 17:06:26 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 */ - #ifndef __AGENT_OP_H -#define __AGENT_OP_H - +#define __AGENT_OP_H - -/** Checks if syscheck is to be executed/restarted. - * Returns 1 on success or 0 on failure (shouldn't be executed now). +/* Check if syscheck is to be executed/restarted + * Returns 1 on success or 0 on failure (shouldn't be executed now) */ -int os_check_restart_syscheck() ; - +int os_check_restart_syscheck(void); -/** Sets syscheck to be restarted. - * Returns 1 on success or 0 on failure. +/* Set syscheck to be restarted + * Returns 1 on success or 0 on failure */ -int os_set_restart_syscheck(); - +int os_set_restart_syscheck(void); -/** char *os_read_agent_name() - * Reads the agent name for the current agent. - * Returns NULL on error. +/* Read the agent name for the current agent + * Returns NULL on error */ -char *os_read_agent_name(); +char *os_read_agent_name(void); - -/** char *os_read_agent_ip() - * Reads the agent ip for the current agent. - * Returns NULL on error. +/* Read the agent IP for the current agent + * Returns NULL on error */ -char *os_read_agent_ip(); - +char *os_read_agent_ip(void); -/** char *os_read_agent_id() - * Reads the agent id for the current agent. - * Returns NULL on error. +/* Read the agent ID for the current agent + * Returns NULL on error */ -char *os_read_agent_id(); - +char *os_read_agent_id(void); -/** int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id) - * Writes the agent info inside the queue, for the other processes to read. - * Returns 1 on success or <= 0 on failure. +/* Read the agent profile name for the current agent + * Returns NULL on error */ -int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id); +char *os_read_agent_profile(void); +/* Write the agent info inside the queue, for the other processes to read + * Returns 1 on success or <= 0 on failure + */ +int os_write_agent_info(const char *agent_name, const char *agent_ip, const char *agent_id, + const char *cfg_profile_name) __attribute__((nonnull(1, 3))); -int os_agent_config_changed(); - +#endif /* __AGENT_OP_H */ -#endif -/* EOF */