diff options
author | Stefan Pöschel <github@basicmaster.de> | 2017-02-15 10:16:17 +0100 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2017-02-15 10:16:17 +0100 |
commit | 966d13519a38e1cd69cb19e62c69870529bcb523 (patch) | |
tree | f6e31e8224515177681c2b1c23d02f356246b80f /src/dls.h | |
parent | 0a7f18136ce99e5aecc0c8baf05dfbb1c8e4d7c9 (diff) | |
download | ODR-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.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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_ */ |