X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e19d853bbf16b7ba8c58c71c1da488b9034e0fb3..ad7b95181d5d66817aac46801cd80adbc4f2fac7:/stglibs/srvconf.lib/include/stg/parser_check_user.h diff --git a/stglibs/srvconf.lib/include/stg/parser_check_user.h b/stglibs/srvconf.lib/include/stg/parser_check_user.h index 55d5531e..e0bea221 100644 --- a/stglibs/srvconf.lib/include/stg/parser_check_user.h +++ b/stglibs/srvconf.lib/include/stg/parser_check_user.h @@ -22,23 +22,25 @@ #ifndef __STG_STGLIBS_SRVCONF_PARSER_CHECK_USER_H__ #define __STG_STGLIBS_SRVCONF_PARSER_CHECK_USER_H__ -#include "stg/parser.h" +#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