X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fheaders%2Ffile-queue.h;h=80c3e6e64589e229fc0f71c0b147d6a7377e8966;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=eabea60b731218e895e4cdcdaed8d8feca921de2;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/headers/file-queue.h b/src/headers/file-queue.h old mode 100755 new mode 100644 index eabea60..80c3e6e --- a/src/headers/file-queue.h +++ b/src/headers/file-queue.h @@ -1,16 +1,12 @@ -/* @(#) $Id: file-queue.h,v 1.6 2009/06/24 17:06:26 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 */ - - #ifndef __CFQUEUE_H #define __CFQUEUE_H @@ -18,25 +14,23 @@ #define FQ_TIMEOUT 5 /* File queue */ -typedef struct _file_queue -{ - int last_change; +typedef struct _file_queue { + time_t last_change; int year; int day; int flags; - + char mon[4]; - char file_name[MAX_FQUEUE +1]; - + char file_name[MAX_FQUEUE + 1]; + FILE *fp; struct stat f_status; -}file_queue; - +} file_queue; -/*** Prototypes */ #include "read-alert.h" -int Init_FileQueue(file_queue *fileq, struct tm *p, int flags); +int Init_FileQueue(file_queue *fileq, const struct tm *p, int flags) __attribute__((nonnull)); + +alert_data *Read_FileMon(file_queue *fileq, const struct tm *p, unsigned int timeout) __attribute__((nonnull)); -alert_data *Read_FileMon(file_queue *fileq, struct tm *p, int timeout); +#endif /* __CFQUEUE_H */ -#endif