From 69d6df33bf7fabe62cdcd61bcd7ebc20b6de6b67 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 30 May 2022 19:33:37 +0200 Subject: Add custom output object names to source specifications. --- src/libctor.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libctor.h') diff --git a/src/libctor.h b/src/libctor.h index f80a5c5..b539910 100644 --- a/src/libctor.h +++ b/src/libctor.h @@ -44,8 +44,14 @@ struct Source Source(const char* file, Language lang) : file(file), language(lang) {} Source(const std::string& file, Language lang) : file(file), language(lang) {} + Source(const char* file, const char* output) : file(file), output(output) {} + Source(const std::string& file, const std::string& output) : file(file), output(output) {} + Source(const char* file, Language lang, const char* output) : file(file), language(lang), output(output) {} + Source(const std::string& file, Language lang, const std::string& output) : file(file), language(lang), output(output) {} + std::string file; Language language{Language::Auto}; + std::string output{}; }; struct Flags -- cgit v1.2.3