* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include "parser_server_info.h"
+#include "server_info.h"
#include "stg/common.h"
#include <cstdio> // sprintf
-#include <cstddef>
#include <strings.h>
}
-SERVER_INFO::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+SERVER_INFO::PARSER::PARSER(CALLBACK f, void * d)
+ : callback(f),
+ data(d),
depth(0),
parsingAnswer(false)
{
parsingAnswer = false;
}
}
-//-----------------------------------------------------------------------------
-void SERVER_INFO::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}