1 /* @(#) $Id: ./src/headers/agent_op.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
19 /** Checks if syscheck is to be executed/restarted.
20 * Returns 1 on success or 0 on failure (shouldn't be executed now).
22 int os_check_restart_syscheck() ;
25 /** Sets syscheck to be restarted.
26 * Returns 1 on success or 0 on failure.
28 int os_set_restart_syscheck();
31 /** char *os_read_agent_name()
32 * Reads the agent name for the current agent.
33 * Returns NULL on error.
35 char *os_read_agent_name();
38 /** char *os_read_agent_ip()
39 * Reads the agent ip for the current agent.
40 * Returns NULL on error.
42 char *os_read_agent_ip();
45 /** char *os_read_agent_id()
46 * Reads the agent id for the current agent.
47 * Returns NULL on error.
49 char *os_read_agent_id();
53 /** char *os_read_agent_profile()
54 * Reads the agent profile name for the current agent.
55 * Returns NULL on error.
57 char *os_read_agent_profile();
60 /** int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id)
61 * Writes the agent info inside the queue, for the other processes to read.
62 * Returns 1 on success or <= 0 on failure.
64 int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id,
65 char *cfg_profile_name); /*cmoraes*/
68 int os_agent_config_changed();