aboutsummaryrefslogtreecommitdiffstats
path: root/src/dls.h
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2017-02-15 10:16:17 +0100
committerStefan Pöschel <github@basicmaster.de>2017-02-15 10:16:17 +0100
commit966d13519a38e1cd69cb19e62c69870529bcb523 (patch)
treef6e31e8224515177681c2b1c23d02f356246b80f /src/dls.h
parent0a7f18136ce99e5aecc0c8baf05dfbb1c8e4d7c9 (diff)
downloadODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.tar.gz
ODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.tar.bz2
ODR-PadEnc-966d13519a38e1cd69cb19e62c69870529bcb523.zip
Small refactorings
Diffstat (limited to 'src/dls.h')
-rw-r--r--src/dls.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/dls.h b/src/dls.h
index 547c1df..5b56ffa 100644
--- a/src/dls.h
+++ b/src/dls.h
@@ -47,6 +47,16 @@ enum {
};
+// --- DL_PARAMS -----------------------------------------------------------------
+struct DL_PARAMS {
+ DABCharset charset;
+ bool raw_dls;
+ bool remove_dls;
+
+ DL_PARAMS() : charset(DABCharset::UTF8), raw_dls(false), remove_dls(false) {}
+};
+
+
// --- DL_PLUS_TAG -----------------------------------------------------------------
struct DL_PLUS_TAG {
int content_type;
@@ -140,7 +150,7 @@ public:
static const std::string DL_PARAMS_CLOSE;
DLSManager(PADPacketizer* pad_packetizer) : pad_packetizer(pad_packetizer), dls_toggle(false) {}
- void writeDLS(const std::string& dls_file, DABCharset charset, bool raw_dls, bool remove_dls);
+ void writeDLS(const std::string& dls_file, const DL_PARAMS& dl_params);
};
#endif /* DLS_H_ */