From 966d13519a38e1cd69cb19e62c69870529bcb523 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Wed, 15 Feb 2017 10:16:17 +0100 Subject: Small refactorings --- src/dls.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/dls.h') 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_ */ -- cgit v1.2.3