summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-28 14:17:04 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-28 14:17:04 +0100
commite2b29fb7033ff554988ce1bfc781822a821cfa15 (patch)
tree21978e99cea438bb4a2ef8fb77fc926e892deee5 /src/cpl.h
parent56051988dab4fedbd75094039bd5ef6a148a2d82 (diff)
Add include_mca_subdescriptors option to CPL::write_xml().
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cpl.h b/src/cpl.h
index 629a296a..71ac8545 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -124,10 +124,13 @@ public:
*
* @param file Filename to write
* @param signer Signer to sign the CPL, or 0 to add no signature
+ * @param include_mca_subdescriptors true to add a MCASubDescriptors tag to metadata,
+ * false to omit it.
*/
void write_xml (
boost::filesystem::path file,
- std::shared_ptr<const CertificateChain>
+ std::shared_ptr<const CertificateChain>,
+ bool include_mca_subdescriptors = true
) const;
void resolve_refs (std::vector<std::shared_ptr<Asset>>);
@@ -344,7 +347,7 @@ protected:
private:
friend struct ::verify_invalid_language3;
- void maybe_write_composition_metadata_asset (xmlpp::Element* node) const;
+ void maybe_write_composition_metadata_asset(xmlpp::Element* node, bool include_mca_subdescriptors) const;
void read_composition_metadata_asset (cxml::ConstNodePtr node);
void write_mca_subdescriptors(xmlpp::Element* parent, std::shared_ptr<const SoundAsset> asset) const;