summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-08-30 19:30:43 -0400
committerRusty Wagner <rusty@vector35.com>2016-08-30 19:30:43 -0400
commit827662fbb6caa9d0aa3089cafb20a578a68eaee7 (patch)
treeef994eec388aafbc71266a70d4b6dd3f07714e54 /python
parente878199be4a74c880acd5d38c33965b47d7630d0 (diff)
Add API to determine if a function still has analysis updates to complete
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 092e07c0..e9f036ae 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -4349,6 +4349,11 @@ class Function(object):
return core.BNHasExplicitlyDefinedType(self.handle)
@property
+ def needs_update(self):
+ """Whether the function has analysis that needs to be updated (read-only)"""
+ return core.BNIsFunctionUpdateNeeded(self.handle)
+
+ @property
def basic_blocks(self):
"""List of basic blocks (read-only)"""
count = ctypes.c_ulonglong()