X-Git-Url: https://git.cameronkatri.com/ldid.git/blobdiff_plain/ec3af45e12e60355d13d2caed08070b4ccb64e3b..f244584cbb226b05a323298d04022cba4c4496fa:/ldid.hpp diff --git a/ldid.hpp b/ldid.hpp index a6a7b49..688b14c 100644 --- a/ldid.hpp +++ b/ldid.hpp @@ -1,6 +1,8 @@ #ifndef LDID_HPP #define LDID_HPP +/* SPDX-License-Identifier: AGPL-3.0-only */ + #include #include #include @@ -94,6 +96,8 @@ class SubFolder : public: SubFolder(Folder &parent, const std::string &path); + std::string Path(const std::string &path) const; + virtual void Save(const std::string &path, bool edit, const void *flag, const Functor &code); virtual bool Look(const std::string &path) const; virtual void Open(const std::string &path, const Functor &code) const; @@ -153,11 +157,11 @@ struct Bundle { Hash hash; }; -Bundle Sign(const std::string &root, Folder &folder, const std::string &key, const std::string &requirements, const Functor &alter, const Progress &progress); +Bundle Sign(const std::string &root, Folder &folder, const std::string &key, const std::string &requirements, const Functor &alter, bool merge, uint8_t platform, const Progress &progress); typedef std::map Slots; -Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::string &identifier, const std::string &entitlements, bool merge, const std::string &requirements, const std::string &key, const Slots &slots, uint32_t flags, bool platform, const Progress &progress); +Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::string &identifier, const std::string &entitlements, bool merge, const std::string &requirements, const std::string &key, const Slots &slots, uint32_t flags, uint8_t platform, const Progress &progress); }