X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8e80bb9cec2c90dd61f810fb1525932a434288eb..2196a3a0cdc5384c082febb7f4aa5994cc7d80db:/projects/stargazer/plugins/configuration/sgconfig/configproto.h?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/configproto.h b/projects/stargazer/plugins/configuration/sgconfig/configproto.h index 77219385..02452bdd 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/configproto.h +++ b/projects/stargazer/plugins/configuration/sgconfig/configproto.h @@ -27,6 +27,10 @@ #include #include +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#include +#pragma GCC diagnostic pop #include #include @@ -38,8 +42,8 @@ namespace STG struct Settings; struct Admins; -struct Tariffs; -struct Users; +class Tariffs; +class Users; struct Services; struct Corporations; struct Store; @@ -67,7 +71,7 @@ public: int Prepare(); int Stop(); const std::string & GetStrError() const { return m_errorStr; } - void Run(); + void Run(std::stop_token token); private: CONFIGPROTO(const CONFIGPROTO & rvalue); @@ -83,7 +87,6 @@ private: uint16_t m_port; std::string m_bindAddress; - bool m_running; bool m_stopped; STG::PluginLogger & m_logger; int m_listenSocket;