]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/capture/cap_nf/cap_nf.cpp
Admin, service and corporation sesnsors added for SUMX
[stg.git] / projects / stargazer / plugins / capture / cap_nf / cap_nf.cpp
index 1b84d4604adbc29e9a59bf13ba878688c9ebb1af..3d6c55b5b7139b2ac037db4f25a65266a1dfaa01 100644 (file)
@@ -39,31 +39,17 @@ $Author: faust $
 
 #include <vector>
 
-#include "common.h" 
+#include "stg/common.h" 
+#include "stg/raw_ip_packet.h"
+#include "stg/traffcounter.h"
+#include "stg/plugin_creator.h"
 #include "cap_nf.h"
-#include "raw_ip_packet.h"
-#include "traffcounter.h"
 
-class CAP_NF_CREATOR {
-public:
-    CAP_NF_CREATOR()
-        : nf(new NF_CAP())
-        {
-        }
-
-    ~CAP_NF_CREATOR()
-        {
-        delete nf;
-        }
-
-    NF_CAP * GetCapturer() { return nf; }
-private:
-    NF_CAP * nf;
-} cnc;
+PLUGIN_CREATOR<NF_CAP> cnc;
 
 PLUGIN * GetPlugin()
 {
-return cnc.GetCapturer();
+return cnc.GetPlugin();
 }
 
 NF_CAP::NF_CAP()