diff options
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r-- | hscript/meta.cc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc index 3b3ee3d..dfd147a 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -261,7 +261,6 @@ Key *Language::parseFromData(const std::string &data, int lineno, int *errors, return new Language(lineno, data); } - bool Language::execute(ScriptOptions opts) const { output_info("installfile:" + std::to_string(this->lineno()), "language: setting default system language to " + @@ -302,6 +301,21 @@ bool Language::execute(ScriptOptions opts) const { } +Key *Keymap::parseFromData(const std::string &data, int lineno, int *, int *) { + return new Keymap(lineno, data); +} + +bool Keymap::validate(ScriptOptions) const { + /* TODO XXX */ + /* Will require console-setup to be installed on the validating machine. */ + return true; +} + +bool Keymap::execute(ScriptOptions) const { + return true; +} + + Key *Firmware::parseFromData(const std::string &data, int lineno, int *errors, int *warnings) { bool value; |