X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ede91934442fd804d7b818971a44e3ad795cb01f..6664a19ff9913571d49a9252e58fddaa9cda7f30:/projects/stargazer/plugins/configuration/sgconfig/configproto.h?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/configproto.h b/projects/stargazer/plugins/configuration/sgconfig/configproto.h index 06748da8..aac913f6 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/configproto.h +++ b/projects/stargazer/plugins/configuration/sgconfig/configproto.h @@ -35,11 +35,11 @@ #include #include +#include "stg/users.h" +#include "stg/admins.h" +#include "stg/tariffs.h" +#include "stg/logger.h" #include "parser.h" -#include "users.h" -#include "admins.h" -#include "tariffs.h" -#include "stg_logger.h" #define STG_HEADER "SG04" #define OK_HEADER "OKHD" @@ -61,16 +61,16 @@ public: void SetTariffs(TARIFFS * t); void SetStore(STORE * s); void SetStgSettings(const SETTINGS * s); - uint32_t GetAdminIP() const; + uint32_t GetAdminIP() const { return adminIP; } int Prepare(); int Stop(); - const std::string & GetStrError() const; - static void * Run(void * a); + const std::string & GetStrError() const { return errorStr; } + void Run(); private: int RecvHdr(int sock); int RecvLogin(int sock); - int SendLoginAnswer(int sock, int err); + int SendLoginAnswer(int sock); int SendHdrAnswer(int sock, int err); int RecvLoginS(int sock); int SendLoginSAnswer(int sock, int err);