-/* @(#) $Id: getloglocation.h,v 1.10 2009/06/24 17:06:22 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 __GETLL_H
-
#define __GETLL_H
#include "eventinfo.h"
-/*
- * Start the log location (need to be called before getlog)
- *
- */
-void OS_InitLog();
-
-void OS_InitFwLog();
+/* Start the log location (need to be called before getlog) */
+void OS_InitLog(void);
+void OS_InitFwLog(void);
-/*
- * Get the log file based on the date/logtype/
- *
- * @param lf Event structure
- *
- * @retval 0 success
- * -1 error
+/* Get the log file based on the date/logtype
+ * Returns 0 on success or -1 on error
*/
-int OS_GetLogLocation(Eventinfo *lf);
+int OS_GetLogLocation(const Eventinfo *lf);
+/* Global declarations */
+extern FILE *_eflog;
+extern FILE *_ejflog;
+extern FILE *_aflog;
+extern FILE *_fflog;
+extern FILE *_jflog;
-FILE *_eflog;
-FILE *_aflog;
-FILE *_fflog;
+#endif /* __GETLL_H */
-#endif /* GETLL_H */