Remove obsolete ZEEK_FORWARD_DECLARE_NAMESPACED macros

This commit is contained in:
Tim Wojtulewicz 2021-02-01 17:04:58 -07:00
parent 8c4092a0ad
commit 4ad08172d0
121 changed files with 722 additions and 547 deletions

View file

@ -7,12 +7,12 @@
#include "zeek/plugin/Component.h"
ZEEK_FORWARD_DECLARE_NAMESPACED(IOSource, zeek, iosource);
ZEEK_FORWARD_DECLARE_NAMESPACED(PktSrc, zeek, iosource);
ZEEK_FORWARD_DECLARE_NAMESPACED(PktDumper, zeek, iosource);
namespace zeek::iosource {
class IOSource;
class PktSrc;
class PktDumper;
/**
* Component description for plugins providing IOSources.
*/

View file

@ -14,12 +14,12 @@
struct timespec;
struct kevent;
ZEEK_FORWARD_DECLARE_NAMESPACED(PktSrc, zeek, iosource);
ZEEK_FORWARD_DECLARE_NAMESPACED(PktDumper, zeek, iosource);
namespace zeek {
namespace iosource {
class PktSrc;
class PktDumper;
/**
* Manager class for IO sources. This handles all of the polling of sources
* in the main loop.

View file

@ -19,12 +19,12 @@ typedef struct timeval pkt_timeval;
#include "zeek/TunnelEncapsulation.h"
#include "zeek/IP.h"
ZEEK_FORWARD_DECLARE_NAMESPACED(ODesc, zeek);
ZEEK_FORWARD_DECLARE_NAMESPACED(Val, zeek);
ZEEK_FORWARD_DECLARE_NAMESPACED(RecordVal, zeek);
namespace zeek {
class ODesc;
class Val;
class RecordVal;
template <class T> class IntrusivePtr;
using ValPtr = IntrusivePtr<Val>;
using RecordValPtr = IntrusivePtr<RecordVal>;

View file

@ -5,9 +5,11 @@
#include "zeek/zeek-config.h"
#include <string>
ZEEK_FORWARD_DECLARE_NAMESPACED(Packet, zeek);
namespace zeek {
namespace zeek::iosource {
class Packet;
namespace iosource {
/**
* Base class for packet dumpers.
@ -133,4 +135,5 @@ private:
std::string errmsg;
};
} // namespace zeek::iosource
} // namespace iosource
} // namespace zeek

View file

@ -9,10 +9,11 @@
#include "zeek/iosource/Packet.h"
struct pcap_pkthdr;
ZEEK_FORWARD_DECLARE_NAMESPACED(BPF_Program, zeek::iosource::detail);
namespace zeek::iosource {
namespace detail { class BPF_Program; }
/**
* Base class for packet sources.
*/