summaryrefslogtreecommitdiff
path: root/src/libctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-05-30 19:33:37 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2022-06-09 22:27:49 +0200
commit69d6df33bf7fabe62cdcd61bcd7ebc20b6de6b67 (patch)
tree3de37f23c4449b899c222989c7c78aa8fc067fd8 /src/libctor.h
parent61f7f7538cc6abb0be64c35570f38dd2541d7451 (diff)
Add custom output object names to source specifications.
Diffstat (limited to 'src/libctor.h')
-rw-r--r--src/libctor.h6
1 files changed, 6 insertions, 0 deletions
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