Rename PKL::write to PKL::write_xml for consistency. v1.8.17
authorCarl Hetherington <cth@carlh.net>
Sat, 30 Apr 2022 18:33:01 +0000 (20:33 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 30 Apr 2022 18:33:01 +0000 (20:33 +0200)
src/dcp.cc
src/pkl.cc
src/pkl.h

index 8924a4b8dc9decb2dd0a776c6745ac640b10c370..df5c89b4852c37863e54db522602f4a581576152 100644 (file)
@@ -445,7 +445,7 @@ DCP::write_xml (shared_ptr<const CertificateChain> signer, NameFormat name_forma
        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);
 
        if (!_asset_map) {
                _asset_map = AssetMap(
index 5846b68def78146587a8989f700d777ff63bf5c0..5465d578b0ea002cb9cb3d59ac09f6331009a18f 100644 (file)
@@ -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;
index baa8a3e28cc04813ca5b8bab73a832924a03cec7..8b1b88a33d2742cd616a3eb5442db62e6486a93a 100644 (file)
--- a/src/pkl.h
+++ b/src/pkl.h
@@ -67,7 +67,7 @@ public:
 
        void clear_assets();
        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 {