X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/94e901e9f7b263786e227baa3c019fffc85c6b7d..908dee0db9288bb455e9f1b68dd81ab50897a677:/stglibs/srvconf.lib/parsers/chg_user.h diff --git a/stglibs/srvconf.lib/parsers/chg_user.h b/stglibs/srvconf.lib/parsers/chg_user.h index 9f8e6b03..b3785070 100644 --- a/stglibs/srvconf.lib/parsers/chg_user.h +++ b/stglibs/srvconf.lib/parsers/chg_user.h @@ -40,6 +40,7 @@ public: PARSER(SIMPLE::CALLBACK f, void * data); int ParseStart(const char * el, const char ** attr); void ParseEnd(const char * el); + void Failure(const std::string & reason) { callback(false, reason, data); } private: SIMPLE::CALLBACK callback; @@ -49,7 +50,7 @@ private: void ParseAnswer(const char * el, const char ** attr); }; -std::string Serialize(const USER_CONF_RES & conf, const USER_STAT_RES & stat); +std::string Serialize(const USER_CONF_RES & conf, const USER_STAT_RES & stat, const std::string & encoding); } // namespace CHG_USER } // namespace STG