From 172511fabc0c94d249a52f6bc117772d91e438ae Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 29 Jan 2024 14:11:37 -0500 Subject: Add creation timestamp to ProjectFile --- binaryninjaapi.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 4dc1ac07..79295b6e 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2635,6 +2635,7 @@ namespace BinaryNinja { Ref GetFolder() const; void SetFolder(Ref folder); bool Export(const std::string& destination) const; + int64_t GetCreationTimestamp() const; }; @@ -2675,9 +2676,9 @@ namespace BinaryNinja { void DeleteFolder(Ref folder, const std::function& progressCallback = {}); Ref CreateFileFromPath(const std::string& path, Ref folder, const std::string& name, const std::string& description, const std::function& progressCallback = {}); - Ref CreateFileFromPathUnsafe(const std::string& path, Ref folder, const std::string& name, const std::string& description, const std::string& id, const std::function& progressCallback = {}); + Ref CreateFileFromPathUnsafe(const std::string& path, Ref folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function& progressCallback = {}); Ref CreateFile(const std::vector& contents, Ref folder, const std::string& name, const std::string& description, const std::function& progressCallback = {}); - Ref CreateFileUnsafe(const std::vector& contents, Ref folder, const std::string& name, const std::string& description, const std::string& id, const std::function& progressCallback = {}); + Ref CreateFileUnsafe(const std::vector& contents, Ref folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function& progressCallback = {}); std::vector> GetFiles() const; Ref GetFileById(const std::string& id) const; Ref GetFileByPathOnDisk(const std::string& path); -- cgit v1.3.1