X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7e142f5d0a61138473602352e38c6f5a5e4bba61..e87b76d3a75c2833d2a646b38210584dc1a93624:/stglibs/srvconf.lib/include/stg/parser_check_user.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/include/stg/parser_check_user.h b/stglibs/srvconf.lib/include/stg/parser_check_user.h index 8088a0c0..e0bea221 100644 --- a/stglibs/srvconf.lib/include/stg/parser_check_user.h +++ b/stglibs/srvconf.lib/include/stg/parser_check_user.h @@ -24,21 +24,23 @@ #include "parser.h" +#include + 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); }; #endif