X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ae21e8d6ad32d0bf3517127aef5cd8129b7507aa..1b2e8014ab6bc93d0ab0fe320ad3cfc8ed94ab81:/projects/sgconf/common_sg.h?ds=sidebyside diff --git a/projects/sgconf/common_sg.h b/projects/sgconf/common_sg.h index 323a8cf8..a5cbffad 100644 --- a/projects/sgconf/common_sg.h +++ b/projects/sgconf/common_sg.h @@ -28,14 +28,10 @@ #ifndef COMMON_SG_H #define COMMON_SG_H -#include "stg/servconf.h" -#include "stg/servconf_types.h" -#include "request.h" - #include -struct USER_CONF_RES; -struct USER_STAT_RES; +#include "stg/servconf.h" +#include "request.h" void UsageConf(); void UsageInfo(); @@ -49,29 +45,27 @@ int CheckLogin(const char * login); void ConvertFromKOI8(const std::string & src, std::string * dst); void ConvertToKOI8(const std::string & src, std::string * dst); -bool ProcessGetUser(const std::string & server, - int port, - const std::string & admLogin, - const std::string & admPasswd, - const std::string & login, - REQUEST & request); - -bool ProcessAuthBy(const std::string & server, +int ProcessGetUser(const std::string &server, int port, - const std::string & admLogin, - const std::string & admPasswd, - const std::string & login); + const std::string &admLogin, + const std::string &admPasswd, + const std::string &login, + void * data); -bool ProcessSetUser(const std::string & server, - int port, - const std::string & admLogin, - const std::string & admPasswd, - const std::string & user, - const USER_CONF_RES & conf, - const USER_STAT_RES & stat); +int ProcessAuthBy(const std::string &server, + int port, + const std::string &admLogin, + const std::string &admPasswd, + const std::string &login, + void * data); -bool ProcessSendMessage(const std::string & server, uint16_t port, - const std::string & login, const std::string & password, - const std::string & user, const std::string & text); +int ProcessSetUser(const std::string &server, + int port, + const std::string &admLogin, + const std::string &admPasswd, + const std::string &str, + void * data, + bool isMessage = false); #endif +