X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/aa5d676fe7c0ca763d42bae5ffb40872f3ba7bff..a5b8198c962e024e23f77fd8b6d68a129f4c46e7:/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h?ds=sidebyside diff --git a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h index 912b5a14..d8f4d6f8 100644 --- a/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h +++ b/projects/stargazer/plugins/capture/divert_freebsd/divert_cap.h @@ -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: @@ -52,13 +51,13 @@ public: int Start(); int Stop(); - int Reload() { return 0; } + int Reload(const MODULE_SETTINGS & /*ms*/) { return 0; } bool IsRunning() { return isRunning; } 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; } @@ -87,6 +86,8 @@ private: bool isRunning; TRAFFCOUNTER * traffCnt; + + PLUGIN_LOGGER logger; }; //-----------------------------------------------------------------------------