X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/99090ca5351c98fd9ce9773456a8a3c3936e8c60..262f652e681a7b2f1686726a1f543ff5fad804da:/stglibs/srvconf.lib/parsers/get_service.h?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_service.h b/stglibs/srvconf.lib/parsers/get_service.h index 24c04849..d752abf2 100644 --- a/stglibs/srvconf.lib/parsers/get_service.h +++ b/stglibs/srvconf.lib/parsers/get_service.h @@ -37,10 +37,12 @@ namespace GET_SERVICE class PARSER: public STG::PARSER { public: + typedef GET_SERVICE::INFO INFO; PARSER(CALLBACK f, void * data); virtual ~PARSER(); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); + void Failure(const std::string & reason) { callback(false, reason, info, data); } private: PROPERTY_PARSERS propertyParsers;