X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/02d8ff35c9a854ffd15a701e46a118bc51be3b7d..61b5cf35c82a5850ceb07fca5232a409e249444c:/stglibs/srvconf.lib/include/stg/parser_chg_user.h diff --git a/stglibs/srvconf.lib/include/stg/parser_chg_user.h b/stglibs/srvconf.lib/include/stg/parser_chg_user.h index 3191f370..d8920cde 100644 --- a/stglibs/srvconf.lib/include/stg/parser_chg_user.h +++ b/stglibs/srvconf.lib/include/stg/parser_chg_user.h @@ -27,16 +27,18 @@ class PARSER_CHG_USER: public PARSER { public: + typedef int (* CALLBACK)(const char * asnwer, 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