summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-23 23:56:44 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-23 23:56:44 +0200
commite56d7a62de8e2f7daa896b04fddbae4054e8e55c (patch)
treeed6c9e904f034645ab30f65e89eb46da90127f41
parent972f4ac422c52d5c695e78cf5daa405175fae4d7 (diff)
Rename PKL::write to PKL::write_xml for consistency.
-rw-r--r--src/dcp.cc2
-rw-r--r--src/pkl.cc2
-rw-r--r--src/pkl.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index da083a35..987a2333 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -550,7 +550,7 @@ DCP::write_xml (
NameFormat::Map values;
values['t'] = "pkl";
auto pkl_path = _directory / name_format.get(values, "_" + pkl->id() + ".xml");
- pkl->write (pkl_path, signer);
+ pkl->write_xml (pkl_path, signer);
write_volindex (standard);
write_assetmap (standard, pkl->id(), pkl_path, issuer, creator, issue_date, annotation_text);
diff --git a/src/pkl.cc b/src/pkl.cc
index 22589b4d..5c7664fb 100644
--- a/src/pkl.cc
+++ b/src/pkl.cc
@@ -94,7 +94,7 @@ PKL::add_asset (std::string id, boost::optional<std::string> annotation_text, st
void
-PKL::write (boost::filesystem::path file, shared_ptr<const CertificateChain> signer) const
+PKL::write_xml (boost::filesystem::path file, shared_ptr<const CertificateChain> signer) const
{
xmlpp::Document doc;
xmlpp::Element* pkl;
diff --git a/src/pkl.h b/src/pkl.h
index 01988e70..5ca32b5a 100644
--- a/src/pkl.h
+++ b/src/pkl.h
@@ -77,7 +77,7 @@ public:
boost::optional<std::string> type (std::string id) const;
void add_asset (std::string id, boost::optional<std::string> annotation_text, std::string hash, int64_t size, std::string type);
- void write (boost::filesystem::path file, std::shared_ptr<const CertificateChain> signer) const;
+ void write_xml (boost::filesystem::path file, std::shared_ptr<const CertificateChain> signer) const;
/** @return the most recent disk file used to read or write this PKL, if there is one */
boost::optional<boost::filesystem::path> file () const {