]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/include/stg/parser_send_message.h
Moved GET_USER and GET_USERS parsers from global scope.
[stg.git] / stglibs / srvconf.lib / include / stg / parser_send_message.h
index d14153e0d2377f951c62cb186dfb35ea9aa5e375..912d507e92ca2e553ce3de249e3250ecf52b91ac 100644 (file)
 
 #include "parser.h"
 
+#include <string>
+
+namespace STG
+{
+
 class PARSER_SEND_MESSAGE: public PARSER
 {
 public:
-    typedef int (* CALLBACK)(const char * answer, void * data);
+    typedef void (* CALLBACK)(bool result, const std::string& reason, void * data);
 
     PARSER_SEND_MESSAGE();
     int  ParseStart(const char * el, const char ** attr);
@@ -41,4 +46,6 @@ private:
     void ParseAnswer(const char * el, const char ** attr);
 };
 
+} // namespace STG
+
 #endif