new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / agent_op.h
old mode 100755 (executable)
new mode 100644 (file)
index fdce89d..232cce4
@@ -1,6 +1,3 @@
-/* @(#) $Id: ./src/headers/agent_op.h, 2011/09/08 dcid Exp $
- */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * Foundation
  */
 
-
 #ifndef __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();
-
-/* cmoraes: added */
+char *os_read_agent_id(void);
 
-/** char *os_read_agent_profile()
- *  Reads the agent profile name for the current agent.
- *  Returns NULL on error.
+/* Read the agent profile name for the current agent
+ * Returns NULL on error
  */
-char *os_read_agent_profile();
+char *os_read_agent_profile(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.
+/* 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(char *agent_name, char *agent_ip, char *agent_id,
-                        char *cfg_profile_name);               /*cmoraes*/
-
-
-int os_agent_config_changed();
+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)));
 
+#endif /* __AGENT_OP_H */
 
-#endif
-/* EOF */