]> git.stg.codes - stg.git/blobdiff - include/stg/traffcounter.h
Some more BSD-related issues.
[stg.git] / include / stg / traffcounter.h
index 75c8c481c3ec3f06ec448e2c36a4927dcf4e4370..42ef0d9235b55ea6cffc29ccf218b1c0cf6cb9d5 100644 (file)
  *    Author : maxim Mamontov <faust@stargazer.dp.ua>
  */
 
-#ifndef TRAFFCOUNTER_H
-#define TRAFFCOUNTER_H
+#pragma once
 
-#include "raw_ip_packet.h"
+#include <cstddef> // 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
+}