diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-29 09:51:38 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-05-29 09:51:38 -0500 |
commit | fd5d356c39eea3138bcb0d0cd1128642afc74a9c (patch) | |
tree | eeefeb8c116094ca3131b1c2c5d24872266ff621 /image/backends/iso.cc | |
parent | 30b9f32d7a544f50f5e06ef930525d620a028db1 (diff) | |
download | horizon-fd5d356c39eea3138bcb0d0cd1128642afc74a9c.tar.gz horizon-fd5d356c39eea3138bcb0d0cd1128642afc74a9c.tar.bz2 horizon-fd5d356c39eea3138bcb0d0cd1128642afc74a9c.tar.xz horizon-fd5d356c39eea3138bcb0d0cd1128642afc74a9c.zip |
image: Support backend options
Diffstat (limited to 'image/backends/iso.cc')
-rw-r--r-- | image/backends/iso.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc index b1d4c43..c3f316e 100644 --- a/image/backends/iso.cc +++ b/image/backends/iso.cc @@ -27,8 +27,9 @@ public: COMMAND_ERROR }; - explicit CDBackend(std::string ir, std::string out) - : BasicBackend(ir, out) {}; + explicit CDBackend(const std::string &ir, const std::string &out, + const std::map<std::string, std::string> &opts) + : BasicBackend(ir, out, opts) {}; int prepare() override { error_code ec; @@ -160,8 +161,9 @@ __attribute__((constructor(400))) void register_cd_backend() { BackendManager::register_backend( {"iso", "Create a CD image (.iso)", - [](std::string ir_dir, std::string out_path) { - return new CDBackend(ir_dir, out_path); + [](const std::string &ir_dir, const std::string &out_path, + const std::map<std::string, std::string> &opts) { + return new CDBackend(ir_dir, out_path, opts); } }); } |