X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/02d8ff35c9a854ffd15a701e46a118bc51be3b7d..01ee16d4dc8527fce90f353b60d3df9c313f54ce:/stglibs/srvconf.lib/include/stg/parser_chg_user.h?ds=sidebyside diff --git a/stglibs/srvconf.lib/include/stg/parser_chg_user.h b/stglibs/srvconf.lib/include/stg/parser_chg_user.h index 3191f370..cc6e9f18 100644 --- a/stglibs/srvconf.lib/include/stg/parser_chg_user.h +++ b/stglibs/srvconf.lib/include/stg/parser_chg_user.h @@ -24,19 +24,23 @@ #include "parser.h" +#include + class PARSER_CHG_USER: public PARSER { public: + typedef void (* CALLBACK)(bool result, const std::string& reason, void * data); + PARSER_CHG_USER(); - int ParseStart(const char *el, const char **attr); - void ParseEnd(const char *el); - void ParseAnswer(const char *el, const char **attr); - void SetChgUserRecvCb(RecvChgUserCb_t, void * data); + int ParseStart(const char * el, const char ** attr); + void ParseEnd(const char * el); + void SetCallback(CALLBACK f, void * data); private: - RecvChgUserCb_t RecvChgUserCb; - void * chgUserCbData; + CALLBACK callback; + void * data; int depth; - bool error; + + void ParseAnswer(const char * el, const char ** attr); }; #endif