diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 13:54:18 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 13:54:18 -0500 |
commit | a3504832b357f6bd97f51560dbbf8a933583dc70 (patch) | |
tree | 26533fd27d36ca4b10e9c472a3d82d3f6d63fe8b /hscript/meta.cc | |
parent | 36199bc708785688306bf6c027ea3eb0f7a4d88b (diff) | |
download | horizon-a3504832b357f6bd97f51560dbbf8a933583dc70.tar.gz horizon-a3504832b357f6bd97f51560dbbf8a933583dc70.tar.bz2 horizon-a3504832b357f6bd97f51560dbbf8a933583dc70.tar.xz horizon-a3504832b357f6bd97f51560dbbf8a933583dc70.zip |
hscript: Add Keymap code
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; |