summaryrefslogtreecommitdiff
path: root/server/src/templateparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/templateparser.h')
-rw-r--r--server/src/templateparser.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/templateparser.h b/server/src/templateparser.h
index 6e5fb1a..425030f 100644
--- a/server/src/templateparser.h
+++ b/server/src/templateparser.h
@@ -50,6 +50,7 @@ public:
void characterData(std::string &data);
void startTag(std::string name, std::map< std::string, std::string> attributes);
void endTag(std::string name);
+ void parseError(char *buf, size_t len, std::string error, int lineno);
Template *getTemplate();
@@ -59,6 +60,8 @@ protected:
private:
int fd;
+ std::string file;
+
// Parser state data
ParserState state;
Template *t;
@@ -67,7 +70,7 @@ private:
std::vector< Widget* > widgetstack;
// Error callback function.
- void error(char* fmt, ...);
+ void error(const char* fmt, ...);
};
#endif/*__PRACRO_TEMPLATEPARSER_H__*/