X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/76fb825a64343da7a8aa9b16c5dbcab709504832..0cabf81ae09d8f44c953f1fe356e24b7e84f2317:/stglibs/srvconf.lib/parsers/check_user.cpp diff --git a/stglibs/srvconf.lib/parsers/check_user.cpp b/stglibs/srvconf.lib/parsers/check_user.cpp index 0cb37522..5f131292 100644 --- a/stglibs/srvconf.lib/parsers/check_user.cpp +++ b/stglibs/srvconf.lib/parsers/check_user.cpp @@ -19,17 +19,15 @@ * Author : Maxim Mamontov */ -#include "parser_check_user.h" - -#include +#include "check_user.h" #include using namespace STG; -CHECK_USER::PARSER::PARSER() - : callback(NULL), - data(NULL), +CHECK_USER::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0) { } @@ -57,9 +55,3 @@ if (attr && attr[0] && attr[1] && strcasecmp(attr[0], "value") == 0) else callback(false, "Invalid response.", data); } -//----------------------------------------------------------------------------- -void CHECK_USER::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}