X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8b2d407ef1f52d42ca30d8f5e23c7a4277a2acd5..ad7b95181d5d66817aac46801cd80adbc4f2fac7:/stglibs/srvconf.lib/include/stg/servconf.h diff --git a/stglibs/srvconf.lib/include/stg/servconf.h b/stglibs/srvconf.lib/include/stg/servconf.h index b422f708..7cc18c4a 100644 --- a/stglibs/srvconf.lib/include/stg/servconf.h +++ b/stglibs/srvconf.lib/include/stg/servconf.h @@ -46,9 +46,6 @@ #include -void Start(void * data, const char * el, const char ** attr); -void End(void * data, const char * el); - #define MAX_ERR_STR_LEN (64) #define IP_STRING_LEN (255) @@ -60,12 +57,8 @@ struct ADMINDATA class SERVCONF { public: - SERVCONF(); - void SetServer(const char * server); - void SetPort(uint16_t port); - - void SetAdmLogin(const char * login); - void SetAdmPassword(const char * password); + SERVCONF(const std::string & server, uint16_t port, + const std::string & login, const std::string & password); void SetGetUsersCallback(PARSER_GET_USERS::CALLBACK f, void * data); void SetAuthByCallback(PARSER_AUTH_BY::CALLBACK f, void * data); @@ -105,7 +98,7 @@ private: int Exec(const char * request); - friend int AnsRecv(void * data, std::list * list); + friend bool AnsRecv(void * data, const std::string & chunk, bool final); }; //-----------------------------------------------------------------------------