Move logging code to zeek namespaces

This commit is contained in:
Tim Wojtulewicz 2020-08-01 10:48:05 -07:00
parent 9a800265ff
commit 45b5c6e619
25 changed files with 135 additions and 114 deletions

View file

@ -6,16 +6,16 @@
#include "plugin/Component.h"
#include "plugin/TaggedComponent.h"
namespace logging {
ZEEK_FORWARD_DECLARE_NAMESPACED(WriterFrontend, zeek, logging);
ZEEK_FORWARD_DECLARE_NAMESPACED(WriterBackend, zeek, logging);
class WriterFrontend;
class WriterBackend;
namespace zeek::logging {
/**
* Component description for plugins providing log writers.
*/
class Component : public zeek::plugin::Component,
public plugin::TaggedComponent<logging::Tag> {
public zeek::plugin::TaggedComponent<logging::Tag> {
public:
typedef WriterBackend* (*factory_callback)(WriterFrontend* frontend);
@ -60,4 +60,4 @@ private:
factory_callback factory;
};
}
} // namespace zeek::logging