From 1f0a1dec1af315e6465e1c1dd503aa942a85b1f4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 12 Oct 2019 00:44:14 -0500 Subject: hscript: Pass opts to all validate()s, implement 'mount' validation --- hscript/meta.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hscript/meta.hh') diff --git a/hscript/meta.hh b/hscript/meta.hh index fadd837..3574a6f 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -27,8 +27,8 @@ private: public: static Key *parseFromData(const std::string data, int lineno, int *errors, int *warnings); - bool validate() const override; - bool execute() const override; + bool validate(ScriptOptions) const override; + bool execute(ScriptOptions) const override; }; class PkgInstall : public Key { @@ -40,8 +40,8 @@ public: static Key *parseFromData(const std::string data, int lineno, int *errors, int *warnings); const std::set packages() const { return _pkgs; } - bool validate() const override { return true; } - bool execute() const override { return true; } + bool validate(ScriptOptions) const override { return true; } + bool execute(ScriptOptions) const override { return true; } }; -- cgit v1.2.3-60-g2f50