summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-21 00:53:55 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-21 21:57:18 +0200
commit4b2b565a03f26c399960416efeed300dd80e401b (patch)
tree853c5efe4b1b21290ecdcf2c623d53d2e47df10c /src
parentcdd98db2de839a5ef14b3c9c67a58392a8e123c1 (diff)
Adapt for changes in parent branch, and test churn.
Diffstat (limited to 'src')
-rw-r--r--src/combine.cc12
-rw-r--r--src/combine.h12
2 files changed, 21 insertions, 3 deletions
diff --git a/src/combine.cc b/src/combine.cc
index 0e262fce..65cd3d0b 100644
--- a/src/combine.cc
+++ b/src/combine.cc
@@ -94,7 +94,15 @@ create_hard_link_or_copy (boost::filesystem::path from, boost::filesystem::path
void
-dcp::combine (vector<boost::filesystem::path> inputs, boost::filesystem::path output, shared_ptr<const CertificateChain> signer)
+dcp::combine (
+ vector<boost::filesystem::path> inputs,
+ boost::filesystem::path output,
+ string issuer,
+ string creator,
+ string issue_date,
+ string annotation_text,
+ shared_ptr<const CertificateChain> signer
+ )
{
using namespace boost::filesystem;
@@ -161,5 +169,5 @@ dcp::combine (vector<boost::filesystem::path> inputs, boost::filesystem::path ou
}
output_dcp.resolve_refs (assets);
- output_dcp.write_xml (*standard, dcp::XMLMetadata(), signer);
+ output_dcp.write_xml (*standard, issuer, creator, issue_date, annotation_text, signer);
}
diff --git a/src/combine.h b/src/combine.h
index 5d40d4d1..3d8a6284 100644
--- a/src/combine.h
+++ b/src/combine.h
@@ -32,6 +32,8 @@
*/
+#include "compose.hpp"
+#include "version.h"
#include <boost/filesystem.hpp>
@@ -39,7 +41,15 @@ namespace dcp {
class CertificateChain;
-void combine (std::vector<boost::filesystem::path> inputs, boost::filesystem::path output, boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<CertificateChain>());
+void combine (
+ std::vector<boost::filesystem::path> inputs,
+ boost::filesystem::path output,
+ std::string issuer = String::compose("libdcp %1", dcp::version),
+ std::string creator = String::compose("libdcp %1", dcp::version),
+ std::string issue_date = LocalTime().as_string(),
+ std::string annotation_text = String::compose("Created by libdcp %1", dcp::version),
+ boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<CertificateChain>()
+ );
}