X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/86fd475d6f97b818d7cb45e91625a1cb7ac9c8e6..9d4423c1adf360b1aa1503b2addcf3c1228cec7a:/projects/stargazer/plugins/capture/ipq_linux/ipq_cap.h diff --git a/projects/stargazer/plugins/capture/ipq_linux/ipq_cap.h b/projects/stargazer/plugins/capture/ipq_linux/ipq_cap.h index 7c78da89..39ed5766 100644 --- a/projects/stargazer/plugins/capture/ipq_linux/ipq_cap.h +++ b/projects/stargazer/plugins/capture/ipq_linux/ipq_cap.h @@ -26,6 +26,7 @@ #include "stg/plugin.h" #include "stg/module_settings.h" #include "stg/os_int.h" +#include "stg/logger.h" #define BUFSIZE (256) #define PAYLOAD_LEN (96) @@ -36,8 +37,6 @@ class ADMINS; class TRAFFCOUNTER; class SETTINGS; -extern "C" PLUGIN * GetPlugin(); - //----------------------------------------------------------------------------- class IPQ_CAP :public PLUGIN { public: @@ -53,7 +52,7 @@ public: int ParseSettings() { return 0; } 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; } @@ -76,6 +75,8 @@ private: TRAFFCOUNTER * traffCnt; unsigned char buf[BUFSIZE]; + + PLUGIN_LOGGER logger; }; #endif