X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/76fb825a64343da7a8aa9b16c5dbcab709504832..1d13a44b88121ddf9f64b6dd60ac2e7b39832be6:/stglibs/srvconf.lib/parsers/get_user.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_user.cpp b/stglibs/srvconf.lib/parsers/get_user.cpp index 2c398914..e1f06e8b 100644 --- a/stglibs/srvconf.lib/parsers/get_user.cpp +++ b/stglibs/srvconf.lib/parsers/get_user.cpp @@ -19,13 +19,12 @@ * Author : Maxim Mamontov */ -#include "parser_get_user.h" +#include "get_user.h" #include "stg/common.h" #include #include -#include #include @@ -61,9 +60,9 @@ return true; } -GET_USER::PARSER::PARSER() - : callback(NULL), - data(NULL), +GET_USER::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0), parsingAnswer(false) { @@ -149,9 +148,3 @@ void GET_USER::PARSER::ParseUserParams(const char * el, const char ** attr) if (!TryParse(propertyParsers, ToLower(el), attr)) error = "Invalid parameter."; } -//----------------------------------------------------------------------------- -void GET_USER::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}