summaryrefslogtreecommitdiff
path: root/view/sharedcache/api
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/api')
-rw-r--r--view/sharedcache/api/python/sharedcache.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/sharedcache/api/python/sharedcache.py b/view/sharedcache/api/python/sharedcache.py
index e250b95b..dff9bcc3 100644
--- a/view/sharedcache/api/python/sharedcache.py
+++ b/view/sharedcache/api/python/sharedcache.py
@@ -214,6 +214,14 @@ class SharedCacheController:
sccore.BNSharedCacheFreeSymbol(api_symbol)
return symbol
+ def get_symbol_with_name(self, name: str) -> Optional[CacheSymbol]:
+ api_symbol = sccore.BNSharedCacheSymbol()
+ if not sccore.BNSharedCacheControllerGetSymbolWithName(self.handle, name, api_symbol):
+ return None
+ symbol = symbol_from_api(api_symbol)
+ sccore.BNSharedCacheFreeSymbol(api_symbol)
+ return symbol
+
@property
def regions(self) -> [CacheRegion]:
count = ctypes.c_ulonglong()