From 3f38812a5d5c6e568da8036cccda38835d05a33c Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 14 Feb 2024 16:32:56 -0500 Subject: Make Project::Delete{File,Folder} return bool --- binaryninjaapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'binaryninjaapi.h') 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> GetFolders() const; Ref GetFolderById(const std::string& id) const; void PushFolder(Ref folder); - void DeleteFolder(Ref folder, const std::function& progressCallback = {}); + bool 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, int64_t creationTimestamp, const std::function& progressCallback = {}); @@ -2684,7 +2684,7 @@ namespace BinaryNinja { Ref GetFileById(const std::string& id) const; Ref GetFileByPathOnDisk(const std::string& path); void PushFile(Ref file); - void DeleteFile_(Ref file); + bool DeleteFile_(Ref file); void RegisterNotification(ProjectNotification* notify); void UnregisterNotification(ProjectNotification* notify); -- cgit v1.3.1