From ec29fc6e601d91c10027ed9277a8bc89f8e5bc7d Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Thu, 23 Jan 2020 15:23:07 -0500 Subject: Add clean saving --- binaryninjaapi.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index ba863efa..9c10b80b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -897,16 +897,16 @@ __attribute__ ((format (printf, 1, 2))) void MarkFileSaved(); bool IsBackedByDatabase() const; - bool CreateDatabase(const std::string& name, BinaryView* data); + bool CreateDatabase(const std::string& name, BinaryView* data, bool clean = false); bool CreateDatabase(const std::string& name, BinaryView* data, - const std::function& progressCallback); + const std::function& progressCallback, bool clean = false); Ref OpenExistingDatabase(const std::string& path); Ref OpenExistingDatabase(const std::string& path, const std::function& progressCallback); Ref OpenDatabaseForConfiguration(const std::string& path); - bool SaveAutoSnapshot(BinaryView* data); + bool SaveAutoSnapshot(BinaryView* data, bool clean = false); bool SaveAutoSnapshot(BinaryView* data, - const std::function& progressCallback); + const std::function& progressCallback, bool clean = false); bool Rebase(BinaryView* data, uint64_t address); bool Rebase(BinaryView* data, uint64_t address, const std::function& progressCallback); @@ -1452,11 +1452,11 @@ __attribute__ ((format (printf, 1, 2))) bool IsModified() const; bool IsAnalysisChanged() const; bool IsBackedByDatabase() const; - bool CreateDatabase(const std::string& path); + bool CreateDatabase(const std::string& path, bool clean = false); bool CreateDatabase(const std::string& path, - const std::function& progressCallback); - bool SaveAutoSnapshot(); - bool SaveAutoSnapshot(const std::function& progressCallback); + const std::function& progressCallback, bool clean = false); + bool SaveAutoSnapshot(bool clean = false); + bool SaveAutoSnapshot(const std::function& progressCallback, bool clean = false); void BeginUndoActions(); void AddUndoAction(UndoAction* action); -- cgit v1.3.1