X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/57680908c5cfa6837c7ca111dbc19299170d14d8..8f1d13e63e83c5f590d59f6d09f2d1dae69ba526:/stglibs/srvconf.lib/include/stg/parser_auth_by.h diff --git a/stglibs/srvconf.lib/include/stg/parser_auth_by.h b/stglibs/srvconf.lib/include/stg/parser_auth_by.h new file mode 100644 index 00000000..3ef1d00c --- /dev/null +++ b/stglibs/srvconf.lib/include/stg/parser_auth_by.h @@ -0,0 +1,26 @@ +#ifndef __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__ +#define __STG_STGLIBS_SRVCONF_PARSER_AUTH_BY_H__ + +#include "stg/parser.h" + +#include +#include + +class PARSER_AUTH_BY: public PARSER +{ +public: + typedef std::vector INFO; + typedef void (* CALLBACK)(const INFO & info, void * data); + + PARSER_AUTH_BY(); + int ParseStart(const char *el, const char **attr); + void ParseEnd(const char *el); + void SetCallback(CALLBACK f, void * data); +private: + CALLBACK callback; + void * data; + int depth; + INFO info; +}; + +#endif