X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/76fb825a64343da7a8aa9b16c5dbcab709504832..9f529554bd6dfa4cba4027f51753db42326ab4d9:/stglibs/srvconf.lib/parsers/chg_user.cpp?ds=sidebyside diff --git a/stglibs/srvconf.lib/parsers/chg_user.cpp b/stglibs/srvconf.lib/parsers/chg_user.cpp index b5f4eb73..a656c287 100644 --- a/stglibs/srvconf.lib/parsers/chg_user.cpp +++ b/stglibs/srvconf.lib/parsers/chg_user.cpp @@ -19,17 +19,15 @@ * Author : Maxim Mamontov */ -#include "parser_chg_user.h" - -#include +#include "chg_user.h" #include using namespace STG; -CHG_USER::PARSER::PARSER() - : callback(NULL), - data(NULL), +CHG_USER::PARSER::PARSER(SIMPLE::CALLBACK f, void * d) + : callback(f), + data(d), depth(0) { } @@ -63,9 +61,3 @@ if (attr && attr[0] && attr[1]) else callback(false, "Invalid response.", data); } -//----------------------------------------------------------------------------- -void CHG_USER::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}