X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/6d5f129aad1a6cbaf4d1441c68398e00fa949185..359e4b28458d352dc55ac39db7e4b5bb308eb361:/stglibs/srvconf.lib/include/stg/parser_server_info.h?ds=inline diff --git a/stglibs/srvconf.lib/include/stg/parser_server_info.h b/stglibs/srvconf.lib/include/stg/parser_server_info.h index 5adb2abb..ff31ae71 100644 --- a/stglibs/srvconf.lib/include/stg/parser_server_info.h +++ b/stglibs/srvconf.lib/include/stg/parser_server_info.h @@ -24,6 +24,7 @@ #include "parser.h" +#include "property_parsers.h" #include "stg/const.h" #include @@ -41,19 +42,20 @@ public: int dirNum; std::string dirName[DIR_NUM]; }; - typedef void (* CALLBACK)(const INFO & info, void * data); + typedef void (* CALLBACK)(bool result, const std::string & reason, const INFO & info, void * data); PARSER_SERVER_INFO(); - int ParseStart(const char *el, const char **attr); - void ParseEnd(const char *el); + int ParseStart(const char * el, const char ** attr); + void ParseEnd(const char * el); void SetCallback(CALLBACK f, void * data); private: - void ParseDirName(const char **attr, int d); - + PROPERTY_PARSERS propertyParsers; CALLBACK callback; void * data; int depth; + bool parsingAnswer; INFO info; + std::string error; }; #endif