X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fanalysisd%2Fdecoders%2Fplugin_decoders.h;fp=src%2Fanalysisd%2Fdecoders%2Fplugin_decoders.h;h=50d07a9f1776fe770f19f84368d22f052d810425;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=282eb3139c3993a654aa6093c26de2e044568abb;hpb=927951d1c1ad45ba9e7325f07d996154a91c911b;p=ossec-hids.git diff --git a/src/analysisd/decoders/plugin_decoders.h b/src/analysisd/decoders/plugin_decoders.h old mode 100755 new mode 100644 index 282eb31..50d07a9 --- a/src/analysisd/decoders/plugin_decoders.h +++ b/src/analysisd/decoders/plugin_decoders.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/analysisd/decoders/plugin_decoders.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -8,53 +5,33 @@ * and/or modify it under the terms of the GNU General Public * License (version 2) as published by the FSF - Free Software * Foundation. - * - * License details at the LICENSE file included with OSSEC or - * online at: http://www.ossec.net/en/licensing.html */ - #ifndef __PLUGINDECODER_H #define __PLUGINDECODER_H +#include "eventinfo.h" /* Plugin decoder for OpenBSD PF */ -void *PF_Decoder_Init(char *p_name); -void *PF_Decoder_Exec(void *lf); +void *PF_Decoder_Init(void); +void *PF_Decoder_Exec(Eventinfo *lf); /* Plugin for Symantec Web Security */ -void *SymantecWS_Decoder_Init(char *p_name); -void *SymantecWS_Decoder_Exec(void *lf); +void *SymantecWS_Decoder_Init(void); +void *SymantecWS_Decoder_Exec(Eventinfo *lf); /* Plugin for Sonicwall */ -void *SonicWall_Decoder_Init(char *p_name); -void *SonicWall_Decoder_Exec(void *lf); +void *SonicWall_Decoder_Init(void); +void *SonicWall_Decoder_Exec(Eventinfo *lf); /* Plugin for OSSEC alert */ -void *OSSECAlert_Decoder_Init(char *p_name); -void *OSSECAlert_Decoder_Exec(void *lf); - +void *OSSECAlert_Decoder_Init(void); +void *OSSECAlert_Decoder_Exec(Eventinfo *lf); /* List of plugins. All three lists must be in the same order */ -char *(plugin_decoders[])={"PF_Decoder", - "SymantecWS_Decoder", - "SonicWall_Decoder", - "OSSECAlert_Decoder", - NULL}; -void *(plugin_decoders_init[]) = {PF_Decoder_Init, - SymantecWS_Decoder_Init, - SonicWall_Decoder_Init, - OSSECAlert_Decoder_Init, - NULL}; -void *(plugin_decoders_exec[]) = {PF_Decoder_Exec, - SymantecWS_Decoder_Exec, - SonicWall_Decoder_Exec, - OSSECAlert_Decoder_Exec, - NULL}; - - - +extern const char *(plugin_decoders[]); +extern void *(plugin_decoders_init[]); +extern void *(plugin_decoders_exec[]); -#endif +#endif /* __PLUGINDECODER_H */ -/* EOF */