X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/abe068d00ecc304c855886f5e511b563b352dd0a..85513928f6a270af94c1477f5ae2773647b04cd7:/stglibs/srvconf.lib/parsers/server_info.h?ds=inline diff --git a/stglibs/srvconf.lib/parsers/server_info.h b/stglibs/srvconf.lib/parsers/server_info.h index 7bcbbba4..1865db7f 100644 --- a/stglibs/srvconf.lib/parsers/server_info.h +++ b/stglibs/srvconf.lib/parsers/server_info.h @@ -37,10 +37,10 @@ namespace SERVER_INFO class PARSER: public STG::PARSER { public: - PARSER(); + PARSER(CALLBACK f, void * data); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); - void SetCallback(CALLBACK f, void * data); + void Failure(const std::string & reason) { callback(false, reason, info, data); } private: PROPERTY_PARSERS propertyParsers;