summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2020-01-23 15:23:07 -0500
committerJosh Ferrell <josh@vector35.com>2020-02-06 15:24:27 -0500
commitec29fc6e601d91c10027ed9277a8bc89f8e5bc7d (patch)
tree4df4e2040168932b27a085e1778a1c927c4dd30d /binaryninjaapi.h
parent53fecf0f3cd4557d284eb29a5a5ed96ba43f0b50 (diff)
Add clean saving
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h16
1 files changed, 8 insertions, 8 deletions
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<void(size_t progress, size_t total)>& progressCallback);
+ const std::function<void(size_t progress, size_t total)>& progressCallback, bool clean = false);
Ref<BinaryView> OpenExistingDatabase(const std::string& path);
Ref<BinaryView> OpenExistingDatabase(const std::string& path,
const std::function<void(size_t progress, size_t total)>& progressCallback);
Ref<BinaryView> OpenDatabaseForConfiguration(const std::string& path);
- bool SaveAutoSnapshot(BinaryView* data);
+ bool SaveAutoSnapshot(BinaryView* data, bool clean = false);
bool SaveAutoSnapshot(BinaryView* data,
- const std::function<void(size_t progress, size_t total)>& progressCallback);
+ const std::function<void(size_t progress, size_t total)>& progressCallback, bool clean = false);
bool Rebase(BinaryView* data, uint64_t address);
bool Rebase(BinaryView* data, uint64_t address, const std::function<void(size_t progress, size_t total)>& 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<void(size_t progress, size_t total)>& progressCallback);
- bool SaveAutoSnapshot();
- bool SaveAutoSnapshot(const std::function<void(size_t progress, size_t total)>& progressCallback);
+ const std::function<void(size_t progress, size_t total)>& progressCallback, bool clean = false);
+ bool SaveAutoSnapshot(bool clean = false);
+ bool SaveAutoSnapshot(const std::function<void(size_t progress, size_t total)>& progressCallback, bool clean = false);
void BeginUndoActions();
void AddUndoAction(UndoAction* action);