]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/ether_freebsd/ether_cap.h
Fixed problem running plugin in non-debug mode.
[stg.git] / projects / stargazer / plugins / capture / ether_freebsd / ether_cap.h
index 05357212b78c5dbb33e52241cf8c3489719aaa42..76785ed293ebb55f2116cf2549920371cc21ed39 100644 (file)
@@ -35,8 +35,7 @@
 #include "stg/os_int.h"
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
 #include "stg/os_int.h"
 #include "stg/plugin.h"
 #include "stg/module_settings.h"
-
-extern "C" PLUGIN * GetPlugin();
+#include "stg/logger.h"
 
 #define BUFF_LEN (128)
 
 
 #define BUFF_LEN (128)
 
@@ -95,12 +94,7 @@ public:
                         BPF_CAP();
     virtual             ~BPF_CAP() {}
 
                         BPF_CAP();
     virtual             ~BPF_CAP() {}
 
-    void                SetUsers(USERS *) {}
-    void                SetTariffs(TARIFFS *) {}
-    void                SetAdmins(ADMINS *) {}
     void                SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
     void                SetTraffcounter(TRAFFCOUNTER * tc) { traffCnt = tc; }
-    void                SetStore(STORE *) {}
-    void                SetStgSettings(const SETTINGS *) {}
 
     int                 Start();
     int                 Stop();
 
     int                 Start();
     int                 Stop();
@@ -111,11 +105,14 @@ public:
     int                 ParseSettings();
 
     const std::string & GetStrError() const { return errorStr; }
     int                 ParseSettings();
 
     const std::string & GetStrError() const { return errorStr; }
-    const std::string   GetVersion() const;
-    uint16_t            GetStartPosition() const { return 10; }
-    uint16_t            GetStopPosition() const { return 10; }
+    std::string         GetVersion() const;
+    uint16_t            GetStartPosition() const { return 40; }
+    uint16_t            GetStopPosition() const { return 40; }
 
 private:
 
 private:
+    BPF_CAP(const BPF_CAP & rvalue);
+    BPF_CAP & operator=(const BPF_CAP & rvalue);
+
     static void *       Run(void *);
     int                 BPFCapOpen();
     int                 BPFCapOpen(BPF_DATA * bd);
     static void *       Run(void *);
     int                 BPFCapOpen();
     int                 BPFCapOpen(BPF_DATA * bd);
@@ -137,6 +134,8 @@ private:
     MODULE_SETTINGS       settings;
 
     TRAFFCOUNTER *        traffCnt;
     MODULE_SETTINGS       settings;
 
     TRAFFCOUNTER *        traffCnt;
+
+    PLUGIN_LOGGER         logger;
 };
 //-----------------------------------------------------------------------------
 
 };
 //-----------------------------------------------------------------------------