X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/4e6d856ad85dcbc9b719edc0a459498fa3d4f8e2..043e30006254b050f5a5628bfaa84a0abf888e7a:/ldid.hpp diff --git a/ldid.hpp b/ldid.hpp index 58bbc09..503ebc5 100644 --- a/ldid.hpp +++ b/ldid.hpp @@ -48,6 +48,11 @@ FunctorImpl fun(const Function_ &value) { return value; } +struct Progress { + virtual void operator()(const std::string &value) const = 0; + virtual void operator()(double value) const = 0; +}; + class Folder { public: virtual void Save(const std::string &path, bool edit, const void *flag, const Functor &code) = 0; @@ -148,11 +153,11 @@ struct Bundle { Hash hash; }; -Bundle Sign(const std::string &root, Folder &folder, const std::string &key, const std::string &requirement, const Functor &alter, const Functor &progress, const Functor &percent); +Bundle Sign(const std::string &root, Folder &folder, const std::string &key, const std::string &requirements, const Functor &alter, 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, const std::string &requirement, const std::string &key, const Slots &slots, const Functor &percent); +Hash Sign(const void *idata, size_t isize, std::streambuf &output, const std::string &identifier, const std::string &entitlements, const std::string &requirements, const std::string &key, const Slots &slots, uint32_t flags, bool platform, const Progress &progress); }