Merge commit 'v2.5.1'
[ossec-hids.git] / src / analysisd / eventinfo.h
index dcfeb93..3129630 100755 (executable)
@@ -1,11 +1,11 @@
-/* @(#) $Id: eventinfo.h,v 1.37 2009/07/24 18:34:11 dcid Exp $ */
+/* @(#) $Id$ */
 
 /* 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
  */
 
@@ -67,8 +67,25 @@ typedef struct _Eventinfo
     int time;
     int day;
     int year;
-    char hour[9];
+    char hour[10];
     char mon[4];
+
+    /* SYSCHECK Results variables -- only used by prelude for now */
+    #ifdef PRELUDE
+    char *filename;
+    int perm_before;
+    int perm_after;
+    char *md5_before;
+    char *md5_after;
+    char *sha1_before;
+    char *sha1_after;
+    char *size_before;
+    char *size_after;
+    char *owner_before;
+    char *owner_after;
+    char *gowner_before;
+    char *gowner_after;
+    #endif
 }Eventinfo;
 
 
@@ -82,6 +99,13 @@ typedef struct _EventNode
 
 
 
+/* For test rule only. */
+#ifdef TESTRULE
+int full_output;
+int alert_only;
+#endif
+
+
 /** Types of events (from decoders) **/
 #define UNKNOWN                0   /* Unkown */
 #define SYSLOG         1   /* syslog messages */