]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/simple.h
Implemented some user management functions.
[stg.git] / stglibs / srvconf.lib / parsers / simple.h
index 03c950bccb6222012d8e02bc7a898bc33b03f315..43dbcd56f11b2e89c3cb3383db0f7932f015c0eb 100644 (file)
@@ -38,6 +38,7 @@ public:
     PARSER(const std::string & tag, 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:
     std::string tag;