diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-06 13:07:52 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-06 13:07:52 -0500 |
commit | 0b85e832aa2b050b91b9a3d948dff1984554bcd8 (patch) | |
tree | d640941d335bfcdf25381d214e9b60b34a6b7819 /hscript/script.cc | |
parent | 128c67fd16af66219a98470265a1ff842c345041 (diff) | |
download | horizon-0b85e832aa2b050b91b9a3d948dff1984554bcd8.tar.gz horizon-0b85e832aa2b050b91b9a3d948dff1984554bcd8.tar.bz2 horizon-0b85e832aa2b050b91b9a3d948dff1984554bcd8.tar.xz horizon-0b85e832aa2b050b91b9a3d948dff1984554bcd8.zip |
More API stuff
Diffstat (limited to 'hscript/script.cc')
-rw-r--r-- | hscript/script.cc | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/hscript/script.cc b/hscript/script.cc index 72f9dd8..876efa4 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -12,18 +12,21 @@ #include "script.hh" #include "disk.hh" +#include "meta.hh" +#include "network.hh" +#include "user.hh" namespace Horizon { struct Script::ScriptPrivate { /*! Determines whether or not to enable networking. */ - bool network; + std::unique_ptr<Horizon::Keys::Network> network; /*! The target system's hostname. */ - std::string hostname; + std::unique_ptr<Horizon::Keys::Hostname> hostname; /*! The packages to install to the target system. */ std::vector<std::string> packages; /*! The root shadow line. */ - std::string rootpw; + std::unique_ptr<Horizon::Keys::RootPassphrase> rootpw; /*! Target system's mountpoints. */ std::vector< std::unique_ptr<Horizon::Keys::Mount> > mounts; }; @@ -31,16 +34,16 @@ struct Script::ScriptPrivate { Script::Script() { } -bool Script::load(std::string path) { +const Script *Script::load(std::string, ScriptOptions) { + return nullptr; } -bool Script::load(std::istream &stream) { -} - -bool Script::parse() { +const Script *Script::load(std::istream &, ScriptOptions) { + return nullptr; } bool Script::validate() { + return false; } } |