]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/auth_by.cpp
Improved CHG_USER.
[stg.git] / stglibs / srvconf.lib / parsers / auth_by.cpp
index 99e3c0214c522e09d3a36806ab958823f5145168..61f590bfcc927d3deb62534ee5908161753b17bd 100644 (file)
 
 #include "auth_by.h"
 
-#include <cstddef>
-
 #include <strings.h> // strcasecmp
 
 using namespace STG;
 
-AUTH_BY::PARSER::PARSER()
-    : callback(NULL),
-      data(NULL),
+AUTH_BY::PARSER::PARSER(CALLBACK f, void * d)
+    : callback(f),
+      data(d),
       depth(0),
       parsingAnswer(false)
 {
@@ -79,9 +77,3 @@ if (depth == 0)
     error.clear();
     }
 }
-//-----------------------------------------------------------------------------
-void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}