summaryrefslogtreecommitdiff
path: root/python/filemetadata.py
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2020-12-09 17:17:18 -0500
committerBrian Potchik <brian@vector35.com>2020-12-09 17:17:18 -0500
commitf184af8b393b789f29fd7974c7c8766874daa5f4 (patch)
treebbbadb4f6912f60a0f70dbeb09e8bc46ab9a5db3 /python/filemetadata.py
parentebfcd344e33c010860abbdb240292c96e25efb65 (diff)
Cleanup project creation and add API.
Diffstat (limited to 'python/filemetadata.py')
-rw-r--r--python/filemetadata.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/filemetadata.py b/python/filemetadata.py
index 3f2e88ef..46a399f1 100644
--- a/python/filemetadata.py
+++ b/python/filemetadata.py
@@ -454,6 +454,15 @@ class FileMetadata(object):
return None
return binaryninja.binaryview.BinaryView(file_metadata = self, handle = view)
+ def open_project(self):
+ return core.BNOpenProject(self.handle)
+
+ def close_project(self):
+ core.BNCloseProject(self.handle)
+
+ def is_project_open(self):
+ return core.BNIsProjectOpen(self.handle)
+
@property
def existing_views(self):
length = ctypes.c_ulonglong()