diff options
| author | Josh Ferrell <josh@vector35.com> | 2024-01-29 14:11:37 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2024-01-29 14:11:37 -0500 |
| commit | 172511fabc0c94d249a52f6bc117772d91e438ae (patch) | |
| tree | 293dfa08d83f02e2230d2967a65a0e35134dd23b /binaryninjaapi.h | |
| parent | 0b68ffedb6ded3e5e90f39206d57bd1e93065c87 (diff) | |
Add creation timestamp to ProjectFile
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 5 |
1 files changed, 3 insertions, 2 deletions
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<ProjectFolder> GetFolder() const; void SetFolder(Ref<ProjectFolder> folder); bool Export(const std::string& destination) const; + int64_t GetCreationTimestamp() const; }; @@ -2675,9 +2676,9 @@ namespace BinaryNinja { void DeleteFolder(Ref<ProjectFolder> folder, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); Ref<ProjectFile> CreateFileFromPath(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); - Ref<ProjectFile> CreateFileFromPathUnsafe(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); + Ref<ProjectFile> CreateFileFromPathUnsafe(const std::string& path, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); Ref<ProjectFile> CreateFile(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); - Ref<ProjectFile> CreateFileUnsafe(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); + Ref<ProjectFile> CreateFileUnsafe(const std::vector<uint8_t>& contents, Ref<ProjectFolder> folder, const std::string& name, const std::string& description, const std::string& id, int64_t creationTimestamp, const std::function<bool(size_t progress, size_t total)>& progressCallback = {}); std::vector<Ref<ProjectFile>> GetFiles() const; Ref<ProjectFile> GetFileById(const std::string& id) const; Ref<ProjectFile> GetFileByPathOnDisk(const std::string& path); |
