X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/abe068d00ecc304c855886f5e511b563b352dd0a..1d13a44b88121ddf9f64b6dd60ac2e7b39832be6:/stglibs/srvconf.lib/parsers/check_user.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parsers/check_user.cpp b/stglibs/srvconf.lib/parsers/check_user.cpp index 8bf81e24..5f131292 100644 --- a/stglibs/srvconf.lib/parsers/check_user.cpp +++ b/stglibs/srvconf.lib/parsers/check_user.cpp @@ -21,15 +21,13 @@ #include "check_user.h" -#include - #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; -}