X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7e142f5d0a61138473602352e38c6f5a5e4bba61..c3b507d1eb8a82f9eda3a5e7f7b2dd2f2e9bb4c0:/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 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