X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/02d8ff35c9a854ffd15a701e46a118bc51be3b7d..6e4239ba344debdb20b44b66cf242fec3314de35:/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..db54026a 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 <string>
+
 class PARSER_CHG_USER: public PARSER
 {
 public:
+    typedef int (* 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