X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/76fb825a64343da7a8aa9b16c5dbcab709504832..262f652e681a7b2f1686726a1f543ff5fad804da:/stglibs/srvconf.lib/parsers/auth_by.cpp diff --git a/stglibs/srvconf.lib/parsers/auth_by.cpp b/stglibs/srvconf.lib/parsers/auth_by.cpp index 34e490ca..61f590bf 100644 --- a/stglibs/srvconf.lib/parsers/auth_by.cpp +++ b/stglibs/srvconf.lib/parsers/auth_by.cpp @@ -18,17 +18,15 @@ * Author : Maxim Mamontov */ -#include "parser_auth_by.h" - -#include +#include "auth_by.h" #include // strcasecmp using namespace STG; -AUTH_BY::PARSER::PARSER() - : callback(NULL), - data(NULL), +AUTH_BY::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0), parsingAnswer(false) { @@ -79,9 +77,3 @@ if (depth == 0) error.clear(); } } -//----------------------------------------------------------------------------- -void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}