new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / config / agentlessd-config.h
old mode 100755 (executable)
new mode 100644 (file)
index 3348d8c..8583f55
@@ -1,52 +1,44 @@
-/* @(#) $Id: agentlessd-config.h,v 1.4 2009/06/24 17:06:24 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 _AGENTLESSDCONFIG_H
 #define _AGENTLESSDCONFIG_H
 
-
-/* Entry states. */
+/* Entry states */
 #define LESSD_STATE_CONNECTED       0x001
 #define LESSD_STATE_PERIODIC        0x002
 #define LESSD_STATE_DIFF            0x004
 #define LESSD_USE_SU                0x010
 #define LESSD_USE_SUDO              0x020
 
-
-/* Structure for each entry. */
-typedef struct _agentlessd_entries
-{
+/* Structure for each entry */
+typedef struct _agentlessd_entries {
     short int state;
 
     int frequency;
-    int current_state;
+    time_t current_state;
     int port;
     int error_flag;
-    
+
     char *type;
     char **server;
-    char *options;
+    const char *options;
     char *command;
-    
-}agentlessd_entries;
 
+} agentlessd_entries;
 
-/* Configuration structure. */   
-typedef struct _agentlessd_config
-{
+/* Configuration structure */
+typedef struct _agentlessd_config {
     int queue;
     agentlessd_entries **entries;
 
-}agentlessd_config;
+} agentlessd_config;
 
+#endif /* _AGENTLESSDCONFIG_H */
 
-#endif