#ifndef __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__
#define __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__
-#include "stg/parser.h"
+#include "parser.h"
#include <vector>
#include <string>
{
public:
typedef std::vector<std::string> INFO;
- typedef void (* CALLBACK)(const INFO & info, void * data);
+ typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data);
PARSER_AUTH_BY();
int ParseStart(const char *el, const char **attr);
CALLBACK callback;
void * data;
int depth;
+ bool parsingAnswer;
INFO info;
+ std::string error;
};
#endif