X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e9cb0683c0b33d8458c1d9b2558bbeb5d101e680..f384309c9c663a4b381d2e1a8545693514835395:/stglibs/srvconf.lib/parser_auth_by.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parser_auth_by.cpp b/stglibs/srvconf.lib/parser_auth_by.cpp index 06981aae..34e490ca 100644 --- a/stglibs/srvconf.lib/parser_auth_by.cpp +++ b/stglibs/srvconf.lib/parser_auth_by.cpp @@ -18,13 +18,15 @@ * Author : Maxim Mamontov */ -#include "stg/parser_auth_by.h" +#include "parser_auth_by.h" #include #include // strcasecmp -PARSER_AUTH_BY::PARSER_AUTH_BY() +using namespace STG; + +AUTH_BY::PARSER::PARSER() : callback(NULL), data(NULL), depth(0), @@ -32,7 +34,7 @@ PARSER_AUTH_BY::PARSER_AUTH_BY() { } //----------------------------------------------------------------------------- -int PARSER_AUTH_BY::ParseStart(const char *el, const char **attr) +int AUTH_BY::PARSER::ParseStart(const char *el, const char **attr) { depth++; if (depth == 1) @@ -66,7 +68,7 @@ else return 0; } //----------------------------------------------------------------------------- -void PARSER_AUTH_BY::ParseEnd(const char * /*el*/) +void AUTH_BY::PARSER::ParseEnd(const char * /*el*/) { depth--; if (depth == 0) @@ -78,7 +80,7 @@ if (depth == 0) } } //----------------------------------------------------------------------------- -void PARSER_AUTH_BY::SetCallback(CALLBACK f, void * d) +void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d) { callback = f; data = d;