summaryrefslogtreecommitdiff
path: root/binaryninjacore.h
diff options
context:
space:
mode:
authorJosh F <josh@vector35.com>2022-07-21 16:30:49 -0400
committerJosh F <josh@vector35.com>2022-07-21 16:30:49 -0400
commitbd79cde9742b0fa7b5f38f7b820180f57ba2f55e (patch)
tree49340453f264ce4baceb0b2d462381ecb1d0cc58 /binaryninjacore.h
parent2fbd5289025ef1263c40b72f68de1e7bbe7e5fc5 (diff)
Add FileMetadata::GetLast{Undo,Redo}Entry, add valid field to BNUndoEntry
Diffstat (limited to 'binaryninjacore.h')
-rw-r--r--binaryninjacore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index be051b50..6c830729 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -1940,6 +1940,7 @@ extern "C"
struct BNUndoEntry
{
+ bool valid;
BNUser* user;
char* hash;
BNUndoAction* actions;
@@ -3164,6 +3165,8 @@ extern "C"
BINARYNINJACOREAPI BNUndoEntry* BNGetUndoEntries(BNFileMetadata* file, size_t* count);
BINARYNINJACOREAPI BNUndoEntry* BNGetRedoEntries(BNFileMetadata* file, size_t* count);
+ BINARYNINJACOREAPI BNUndoEntry BNGetLastUndoEntry(BNFileMetadata* file);
+ BINARYNINJACOREAPI BNUndoEntry BNGetLastRedoEntry(BNFileMetadata* file);
BINARYNINJACOREAPI void BNFreeUndoEntries(BNUndoEntry* entries, size_t count);
BINARYNINJACOREAPI void BNClearUndoEntries(BNFileMetadata* file);