X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6e05022104fe92e54c5f7d7de4e87fa8e5ca2d0d..6142244f4146342445f7a9f5f6272763f689e89d:/include/stg/traffcounter.h diff --git a/include/stg/traffcounter.h b/include/stg/traffcounter.h index 75c8c481..42ef0d92 100644 --- a/include/stg/traffcounter.h +++ b/include/stg/traffcounter.h @@ -18,15 +18,20 @@ * Author : maxim Mamontov */ -#ifndef TRAFFCOUNTER_H -#define TRAFFCOUNTER_H +#pragma once -#include "raw_ip_packet.h" +#include // size_t -class TRAFFCOUNTER { -public: - virtual void Process(const RAW_PACKET & rawPacket) = 0; - virtual size_t RulesCount() const = 0; +namespace STG +{ + +struct RawPacket; + +struct TraffCounter { + virtual ~TraffCounter() = default; + + virtual void process(const RawPacket& rawPacket) = 0; + virtual size_t rulesCount() const = 0; }; -#endif +}