X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/85513928f6a270af94c1477f5ae2773647b04cd7..d1d65fe3185a6c2178bbca46e9f409bd8d747c7f:/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 1865db7f..03906389 100644 --- a/stglibs/srvconf.lib/parsers/server_info.h +++ b/stglibs/srvconf.lib/parsers/server_info.h @@ -37,7 +37,7 @@ namespace SERVER_INFO class PARSER: public STG::PARSER { public: - PARSER(CALLBACK f, void * data); + PARSER(CALLBACK f, void * data, const std::string & encoding); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); void Failure(const std::string & reason) { callback(false, reason, info, data); } @@ -46,6 +46,7 @@ private: PROPERTY_PARSERS propertyParsers; CALLBACK callback; void * data; + std::string encoding; int depth; bool parsingAnswer; INFO info;