]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h
Implemented XDG-compliant config file reading.
[stg.git] / projects / stargazer / plugins / capture / divert_freebsd / divert_cap.h
index 62a78a439c0430497bc69dfbb6870027c12444d1..b34f832e5ea5b7706a762edb7ba92b38aeb3b84c 100644 (file)
@@ -33,6 +33,7 @@ $Date: 2009/06/23 11:32:27 $
 
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
+#include "stg/logger.h"
 
 class USERS;
 class TARIFFS;
@@ -40,8 +41,6 @@ class ADMINS;
 class TRAFFCOUNTER;
 class SETTINGS;
 
-extern "C" PLUGIN * GetPlugin();
-
 //-----------------------------------------------------------------------------
 class DIVERT_CAP : public PLUGIN {
 public:
@@ -58,7 +57,7 @@ public:
     void                SetSettings(const MODULE_SETTINGS & s) { settings = s; }
     int                 ParseSettings();
     const std::string & GetStrError() const { return errorStr; }
-    const std::string   GetVersion() const;
+    std::string         GetVersion() const;
     uint16_t            GetStartPosition() const { return 40; }
     uint16_t            GetStopPosition() const { return 40; }
 
@@ -77,6 +76,7 @@ private:
     MODULE_SETTINGS     settings;
 
     int                 port;
+    bool                disableForwarding;
 
     mutable std::string errorStr;
 
@@ -86,6 +86,8 @@ private:
     bool                isRunning;
 
     TRAFFCOUNTER *      traffCnt;
+
+    PLUGIN_LOGGER       logger;
 };
 //-----------------------------------------------------------------------------