new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / config / csyslogd-config.h
old mode 100755 (executable)
new mode 100644 (file)
index 182d975..087429b
@@ -1,41 +1,41 @@
-/* @(#) $Id: csyslogd-config.h,v 1.3 2009/06/24 17:06:25 dcid Exp $ */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All right 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
  */
 
-
 #include "shared.h"
 
 #ifndef _CSYSLOGCONFIG__H
 #define _CSYSLOGCONFIG__H
 
-
 /* Database config structure */
-typedef struct _SyslogConfig
-{
-    unsigned int port;
+typedef struct _SyslogConfig {
+    char *port;
     unsigned int format;
     unsigned int level;
     unsigned int *rule_id;
     unsigned int priority;
+    unsigned int use_fqdn;
     int socket;
 
     char *server;
     OSMatch *group;
     OSMatch *location;
-}SyslogConfig;
+} SyslogConfig;
 
+struct SyslogConfig_holder {
+    SyslogConfig **data;
+};
 
-/* Syslog formats. */
+/* Syslog formats */
 #define DEFAULT_CSYSLOG  0
-
+#define CEF_CSYSLOG      1
+#define JSON_CSYSLOG     2
+#define SPLUNK_CSYSLOG   3
 
 /* Syslog severities */
 #define SLOG_EMERG   0   /* system is unusable */
@@ -47,4 +47,4 @@ typedef struct _SyslogConfig
 #define SLOG_INFO    6   /* informational */
 #define SLOG_DEBUG   7   /* debug-level messages */
 
-#endif
+#endif /* _CSYSLOGCONFIG__H */