Adding separate Plugin.cc for HTTP analyzer for consistency.

This commit is contained in:
Robin Sommer 2013-04-16 14:43:20 -07:00
parent 7a95f5322c
commit a191eed7db
3 changed files with 11 additions and 10 deletions

View file

@ -4,7 +4,7 @@ include(BroPlugin)
include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
bro_plugin_begin(HTTP)
bro_plugin_cc(HTTP.cc)
bro_plugin_cc(HTTP.cc Plugin.cc)
bro_plugin_bif(events.bif)
bro_plugin_bif(functions.bif)
bro_plugin_end()

View file

@ -13,15 +13,6 @@
#include "Event.h"
#include "MIME.h"
#include "plugin/Plugin.h"
BRO_PLUGIN_BEGIN(HTTP)
BRO_PLUGIN_DESCRIPTION("HTTP Analyzer");
BRO_PLUGIN_ANALYZER("HTTP", HTTP_Analyzer::InstantiateAnalyzer);
BRO_PLUGIN_BIF_FILE(events);
BRO_PLUGIN_BIF_FILE(functions);
BRO_PLUGIN_END
const bool DEBUG_http = false;
// The EXPECT_*_NOTHING states are used to prevent further parsing. Used if a

View file

@ -0,0 +1,10 @@
#include "plugin/Plugin.h"
#include "HTTP.h"
BRO_PLUGIN_BEGIN(HTTP)
BRO_PLUGIN_DESCRIPTION("HTTP Analyzer");
BRO_PLUGIN_ANALYZER("HTTP", HTTP_Analyzer::InstantiateAnalyzer);
BRO_PLUGIN_BIF_FILE(events);
BRO_PLUGIN_END