summaryrefslogtreecommitdiff
path: root/hscript/meta.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 00:44:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-12 00:44:14 -0500
commit1f0a1dec1af315e6465e1c1dd503aa942a85b1f4 (patch)
treee8464d9f1e12d3366fa181a2c1dc95a68e817b9c /hscript/meta.hh
parent47558ea71d523fb71307d394be4bfad8da4664d8 (diff)
downloadhorizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.gz
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.bz2
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.tar.xz
horizon-1f0a1dec1af315e6465e1c1dd503aa942a85b1f4.zip
hscript: Pass opts to all validate()s, implement 'mount' validation
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r--hscript/meta.hh8
1 files changed, 4 insertions, 4 deletions
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<std::string> 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; }
};