* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include "parser_check_user.h"
-
-#include <cstddef>
+#include "check_user.h"
#include <strings.h>
using namespace STG;
-CHECK_USER::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+CHECK_USER::PARSER::PARSER(CALLBACK f, void * d)
+ : callback(f),
+ data(d),
depth(0)
{
}
else
callback(false, "Invalid response.", data);
}
-//-----------------------------------------------------------------------------
-void CHECK_USER::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}