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