]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/send_message.cpp
Simplified parser interfaces.
[stg.git] / stglibs / srvconf.lib / parsers / send_message.cpp
index c3a91789058ffcd4a9ddae2bd6b08ba37b1215c4..053583f4cc3fb9205b01c54b8983f8921ec4eccf 100644 (file)
 
 #include "send_message.h"
 
-#include <cstddef>
-
 #include <strings.h>
 
 using namespace STG;
 
-SEND_MESSAGE::PARSER::PARSER()
-    : callback(NULL),
-      data(NULL),
+SEND_MESSAGE::PARSER::PARSER(CALLBACK f, void * d)
+    : callback(f),
+      data(d),
       depth(0)
 {
 }
@@ -57,9 +55,3 @@ if (attr && attr[0] && attr[1])
 else
     callback(false, "Invalid response.", data);
 }
-//-----------------------------------------------------------------------------
-void SEND_MESSAGE::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}