X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/abe068d00ecc304c855886f5e511b563b352dd0a..0cabf81ae09d8f44c953f1fe356e24b7e84f2317:/stglibs/srvconf.lib/parsers/send_message.cpp diff --git a/stglibs/srvconf.lib/parsers/send_message.cpp b/stglibs/srvconf.lib/parsers/send_message.cpp index c3a91789..053583f4 100644 --- a/stglibs/srvconf.lib/parsers/send_message.cpp +++ b/stglibs/srvconf.lib/parsers/send_message.cpp @@ -21,15 +21,13 @@ #include "send_message.h" -#include - #include using namespace STG; -SEND_MESSAGE::PARSER::PARSER() - : callback(NULL), - data(NULL), +SEND_MESSAGE::PARSER::PARSER(CALLBACK f, void * d) + : callback(f), + data(d), depth(0) { } @@ -57,9 +55,3 @@ if (attr && attr[0] && attr[1]) else callback(false, "Invalid response.", data); } -//----------------------------------------------------------------------------- -void SEND_MESSAGE::PARSER::SetCallback(CALLBACK f, void * d) -{ -callback = f; -data = d; -}