Move input code to zeek namespaces

This commit is contained in:
Tim Wojtulewicz 2020-08-01 10:47:51 -07:00
parent 14408235b8
commit 9a800265ff
31 changed files with 227 additions and 162 deletions

View file

@ -6,16 +6,16 @@
#include "plugin/Component.h"
#include "plugin/TaggedComponent.h"
namespace input {
ZEEK_FORWARD_DECLARE_NAMESPACED(ReaderFrontend, zeek, input);
ZEEK_FORWARD_DECLARE_NAMESPACED(ReaderBackend, zeek, input);
class ReaderFrontend;
class ReaderBackend;
namespace zeek::input {
/**
* Component description for plugins providing log readers.
*/
class Component : public zeek::plugin::Component,
public plugin::TaggedComponent<input::Tag> {
public plugin::TaggedComponent<zeek::input::Tag> {
public:
typedef ReaderBackend* (*factory_callback)(ReaderFrontend* frontend);
@ -60,4 +60,8 @@ private:
factory_callback factory;
};
} // namespace zeek::input
namespace input {
using Component [[deprecated("Remove in v4.1. Use zeek::input::Component.")]] = zeek::input::Component;
}