X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/61b5cf35c82a5850ceb07fca5232a409e249444c..cd64751cac4c56591bee9b0a9c2a626ce40e67db:/stglibs/srvconf.lib/include/stg/parser_server_info.h diff --git a/stglibs/srvconf.lib/include/stg/parser_server_info.h b/stglibs/srvconf.lib/include/stg/parser_server_info.h index 5adb2abb..33ff5b66 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,19 @@ 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; INFO info; + std::string error; }; #endif