* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include "parser_auth_by.h"
-
-#include <cstddef>
+#include "auth_by.h"
#include <strings.h> // strcasecmp
using namespace STG;
-AUTH_BY::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+AUTH_BY::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
+ : callback(f),
+ data(d),
+ encoding(e),
depth(0),
parsingAnswer(false)
{
error.clear();
}
}
-//-----------------------------------------------------------------------------
-void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}