X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fagent_op.h;h=fdce89d1e26e7c215de80923b35795dc2d2d6f28;hp=9b53ea4d3218eeb755caa4c494de4419a5bd87c8;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/headers/agent_op.h b/src/headers/agent_op.h index 9b53ea4..fdce89d 100755 --- a/src/headers/agent_op.h +++ b/src/headers/agent_op.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/headers/agent_op.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -11,7 +12,7 @@ #ifndef __AGENT_OP_H -#define __AGENT_OP_H +#define __AGENT_OP_H @@ -47,12 +48,21 @@ char *os_read_agent_ip(); */ char *os_read_agent_id(); +/* cmoraes: added */ + +/** char *os_read_agent_profile() + * Reads the agent profile name for the current agent. + * Returns NULL on error. + */ +char *os_read_agent_profile(); + /** 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. */ -int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id); +int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id, + char *cfg_profile_name); /*cmoraes*/ int os_agent_config_changed();