summaryrefslogtreecommitdiff
path: root/server/src/macroparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/macroparser.h')
-rw-r--r--server/src/macroparser.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/src/macroparser.h b/server/src/macroparser.h
index 843cb55..3867ca1 100644
--- a/server/src/macroparser.h
+++ b/server/src/macroparser.h
@@ -45,7 +45,7 @@ class MacroParser : public SAXParser {
} ParserState;
public:
- MacroParser(std::string course);
+ MacroParser(std::string macro, bool abspath = false);
~MacroParser();
void characterData(std::string &data);
@@ -53,6 +53,12 @@ public:
void endTag(std::string name);
void parseError(char *buf, size_t len, std::string error, int lineno);
+ /**
+ * Get a pointer to the parsed macro.
+ * NOTE: The allocated memory for the macro is owned by the parser, and will be
+ * freed upon parser deletion.
+ * @return A pointer to the macro or NULL on error.
+ */
Macro *getMacro();
protected: