]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/parser_check_user.h
Moved SERVER_INFO parser from global scope.
[stg.git] / stglibs / srvconf.lib / include / stg / parser_check_user.h
index 55d5531edfb7429c59ff2c8d4f32283acc28a4da..4e1f498c629e9080d150874d4d1c739e44663cbd 100644 (file)
 #ifndef __STG_STGLIBS_SRVCONF_PARSER_CHECK_USER_H__
 #define __STG_STGLIBS_SRVCONF_PARSER_CHECK_USER_H__
 
-#include "stg/parser.h"
+#include "parser.h"
+
+#include <string>
+
+namespace STG
+{
 
 class PARSER_CHECK_USER: public PARSER
 {
 public:
-    typedef int (* CALLBACK)(const char * answer, void * data);
+    typedef int (* CALLBACK)(bool result, const std::string & reason, void * data);
 
     PARSER_CHECK_USER();
-    int  ParseStart(const char *el, const char **attr);
-    void ParseEnd(const char *el);
+    int  ParseStart(const char * el, const char ** attr);
+    void ParseEnd(const char * el);
     void SetCallback(CALLBACK f, void * data);
 private:
     CALLBACK callback;
     void * data;
     int depth;
 
-    void ParseAnswer(const char *el, const char **attr);
+    void ParseAnswer(const char * el, const char ** attr);
 };
 
+} // namespace STG
+
 #endif