X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8569ecdc2c9368dc0fe650b901cce7b37337ffec..a79cfb92e093d9c9c78e3ccbabcd45de1a283e56:/stglibs/srvconf.lib/parsers/simple.h?ds=inline

diff --git a/stglibs/srvconf.lib/parsers/simple.h b/stglibs/srvconf.lib/parsers/simple.h
index 03c950bc..244e8ef0 100644
--- a/stglibs/srvconf.lib/parsers/simple.h
+++ b/stglibs/srvconf.lib/parsers/simple.h
@@ -35,14 +35,16 @@ namespace SIMPLE
 class PARSER: public STG::PARSER
 {
 public:
-    PARSER(const std::string & tag, CALLBACK f, void * data);
+    PARSER(const std::string & tag, 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, data); }
 
 private:
     std::string tag;
     CALLBACK callback;
     void * data;
+    std::string encoding;
     int depth;
 
     void ParseAnswer(const char * el, const char ** attr);