X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/daa6cb18a0ff8451a9599905a01d66d6515fdb86..d0175e4206e5856ddec364135b265a13ded8ce29:/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..b7f76b05 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: @@ -48,12 +47,12 @@ public: int Start(); int Stop(); - int Reload() { return 0; } + int Reload(const MODULE_SETTINGS & /*ms*/) { return 0; } bool IsRunning() { return isRunning; } 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