X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Freport_op.h;h=882bf02e953b5cca89d8500fd5edf4b846a478f4;hp=a19ec93f753fcbfb2a20773a92f7a11674800769;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b diff --git a/src/headers/report_op.h b/src/headers/report_op.h old mode 100755 new mode 100644 index a19ec93..882bf02 --- a/src/headers/report_op.h +++ b/src/headers/report_op.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/headers/report_op.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -10,15 +7,12 @@ * Foundation */ - #ifndef __REPORT_OP_H #define __REPORT_OP_H - #define REPORT_RELATED 1 #define REPORT_FILTER 2 - #define REPORT_REL_USER 0x001 #define REPORT_REL_SRCIP 0x002 #define REPORT_REL_LEVEL 0x004 @@ -28,28 +22,25 @@ #define REPORT_TYPE_DAILY 0x100 #define REPORT_REL_FILE 0x200 +typedef struct _report_filter { + const char *report_name; - -typedef struct _report_filter -{ - char *report_name; - - char *group; - char *rule; - char *level; - char *location; - char *user; - char *srcip; - char *files; + const char *group; + const char *rule; + const char *level; + const char *location; + const char *user; + const char *srcip; + const char *files; char *filename; - void *top_user; - void *top_srcip; - void *top_level; - void *top_rule; - void *top_group; - void *top_location; - void *top_files; + OSStore *top_user; + OSStore *top_srcip; + OSStore *top_level; + OSStore *top_rule; + OSStore *top_group; + OSStore *top_location; + OSStore *top_files; int related_user; int related_file; @@ -61,17 +52,14 @@ typedef struct _report_filter int report_type; int show_alerts; - void *fp; - -}report_filter; - + FILE *fp; +} report_filter; - -int os_report_configfilter(char *filter_by, char *filter_value, - report_filter *r_filter, int arg_type); -void os_report_printtop(void *topstore, char *hname, int print_related); -void os_ReportdStart(report_filter *r_filter); - +int os_report_configfilter(const char *filter_by, const char *filter_value, + report_filter *r_filter, int arg_type) __attribute__((nonnull(3))); +void os_report_printtop(void *topstore, const char *hname, int print_related) __attribute__((nonnull)); +void os_ReportdStart(report_filter *r_filter) __attribute__((nonnull)); #endif +