X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/85f8f0b545228f3cffec62d8e2251e756a2fac15..0492dd9aebc0acf9158af88178c503d5d907f9e4:/projects/sgconf/common_sg.h diff --git a/projects/sgconf/common_sg.h b/projects/sgconf/common_sg.h index 4bff0aa7..a5cbffad 100644 --- a/projects/sgconf/common_sg.h +++ b/projects/sgconf/common_sg.h @@ -28,11 +28,11 @@ #ifndef COMMON_SG_H #define COMMON_SG_H +#include + #include "stg/servconf.h" #include "request.h" -#include - void UsageConf(); void UsageInfo(); @@ -45,27 +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 & str); +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 & requestString); +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 +