3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 2) as published by the FSF - Free Software
18 /** Checks if syscheck is to be executed/restarted.
19 * Returns 1 on success or 0 on failure (shouldn't be executed now).
21 int os_check_restart_syscheck() ;
24 /** Sets syscheck to be restarted.
25 * Returns 1 on success or 0 on failure.
27 int os_set_restart_syscheck();
30 /** char *os_read_agent_name()
31 * Reads the agent name for the current agent.
32 * Returns NULL on error.
34 char *os_read_agent_name();
37 /** char *os_read_agent_ip()
38 * Reads the agent ip for the current agent.
39 * Returns NULL on error.
41 char *os_read_agent_ip();
44 /** char *os_read_agent_id()
45 * Reads the agent id for the current agent.
46 * Returns NULL on error.
48 char *os_read_agent_id();
51 /** int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id)
52 * Writes the agent info inside the queue, for the other processes to read.
53 * Returns 1 on success or <= 0 on failure.
55 int os_write_agent_info(char *agent_name, char *agent_ip, char *agent_id);
58 int os_agent_config_changed();