git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed "alpha" from version.
[stg.git]
/
stglibs
/
srvconf.lib
/
parsers
/
get_admin.h
diff --git
a/stglibs/srvconf.lib/parsers/get_admin.h
b/stglibs/srvconf.lib/parsers/get_admin.h
index 0e6eee73d1c4bb7e445ba4c78255a30f98d2dcc9..f7cb3084dd1d0430ce7084bd4d0fbcf550278522 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/get_admin.h
+++ b/
stglibs/srvconf.lib/parsers/get_admin.h
@@
-39,15
+39,17
@@
class PARSER: public STG::PARSER
public:
typedef GET_ADMIN::INFO INFO;
public:
typedef GET_ADMIN::INFO INFO;
- PARSER(CALLBACK f, void * data);
+ PARSER(CALLBACK f, void * data
, const std::string & encoding
);
virtual ~PARSER();
int ParseStart(const char * el, const char ** attr);
void ParseEnd(const char * el);
virtual ~PARSER();
int ParseStart(const char * el, const char ** attr);
void ParseEnd(const char * el);
+ void Failure(const std::string & reason) { callback(false, reason, info, data); }
private:
PROPERTY_PARSERS propertyParsers;
CALLBACK callback;
void * data;
private:
PROPERTY_PARSERS propertyParsers;
CALLBACK callback;
void * data;
+ std::string encoding;
INFO info;
int depth;
bool parsingAnswer;
INFO info;
int depth;
bool parsingAnswer;