summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2024-02-14 16:32:56 -0500
committerJosh Ferrell <josh@vector35.com>2024-02-14 18:54:49 -0500
commit3f38812a5d5c6e568da8036cccda38835d05a33c (patch)
treeebfc20d1c3ab256f58aed076da9045d5eb8e33dd /binaryninjaapi.h
parentaa3c029ae49be31c4e21135ec6011e5c6bb2c60c (diff)
Make Project::Delete{File,Folder} return bool
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h
index 55fd672c..c9804c25 100644
--- a/binaryninjaapi.h
+++ b/binaryninjaapi.h
@@ -2674,7 +2674,7 @@ namespace BinaryNinja {
std::vector<Ref<ProjectFolder>> GetFolders() const;
Ref<ProjectFolder> GetFolderById(const std::string& id) const;
void PushFolder(Ref<ProjectFolder> folder);
- void DeleteFolder(Ref<ProjectFolder> folder, const std::function<bool(size_t progress, size_t total)>& progressCallback = {});
+ bool 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, int64_t creationTimestamp, const std::function<bool(size_t progress, size_t total)>& progressCallback = {});
@@ -2684,7 +2684,7 @@ namespace BinaryNinja {
Ref<ProjectFile> GetFileById(const std::string& id) const;
Ref<ProjectFile> GetFileByPathOnDisk(const std::string& path);
void PushFile(Ref<ProjectFile> file);
- void DeleteFile_(Ref<ProjectFile> file);
+ bool DeleteFile_(Ref<ProjectFile> file);
void RegisterNotification(ProjectNotification* notify);
void UnregisterNotification(ProjectNotification* notify);