summaryrefslogtreecommitdiff
path: root/view/sharedcache/api/python
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache/api/python')
-rw-r--r--view/sharedcache/api/python/_sharedcachecore.py38
-rw-r--r--view/sharedcache/api/python/sharedcache.py6
2 files changed, 44 insertions, 0 deletions
diff --git a/view/sharedcache/api/python/_sharedcachecore.py b/view/sharedcache/api/python/_sharedcachecore.py
index bd9e0764..5f31697e 100644
--- a/view/sharedcache/api/python/_sharedcachecore.py
+++ b/view/sharedcache/api/python/_sharedcachecore.py
@@ -582,6 +582,44 @@ def BNDSCViewLoadSectionAtAddress(
# -------------------------------------------------------
+# _BNDSCViewProcessAllObjCSections
+
+_BNDSCViewProcessAllObjCSections = core.BNDSCViewProcessAllObjCSections
+_BNDSCViewProcessAllObjCSections.restype = None
+_BNDSCViewProcessAllObjCSections.argtypes = [
+ ctypes.POINTER(BNSharedCache),
+ ]
+
+
+# noinspection PyPep8Naming
+def BNDSCViewProcessAllObjCSections(
+ cache: ctypes.POINTER(BNSharedCache)
+ ) -> None:
+ return _BNDSCViewProcessAllObjCSections(cache)
+
+
+# -------------------------------------------------------
+# _BNDSCViewProcessObjCSectionsForImageWithInstallName
+
+_BNDSCViewProcessObjCSectionsForImageWithInstallName = core.BNDSCViewProcessObjCSectionsForImageWithInstallName
+_BNDSCViewProcessObjCSectionsForImageWithInstallName.restype = None
+_BNDSCViewProcessObjCSectionsForImageWithInstallName.argtypes = [
+ ctypes.POINTER(BNSharedCache),
+ ctypes.c_char_p,
+ ctypes.c_bool,
+ ]
+
+
+# noinspection PyPep8Naming
+def BNDSCViewProcessObjCSectionsForImageWithInstallName(
+ cache: ctypes.POINTER(BNSharedCache),
+ name: Optional[str],
+ deallocName: bool
+ ) -> None:
+ return _BNDSCViewProcessObjCSectionsForImageWithInstallName(cache, cstr(name), deallocName)
+
+
+# -------------------------------------------------------
# _BNFreeSharedCacheReference
_BNFreeSharedCacheReference = core.BNFreeSharedCacheReference
diff --git a/view/sharedcache/api/python/sharedcache.py b/view/sharedcache/api/python/sharedcache.py
index 7902c76a..e0e18bde 100644
--- a/view/sharedcache/api/python/sharedcache.py
+++ b/view/sharedcache/api/python/sharedcache.py
@@ -117,6 +117,12 @@ class SharedCache:
def load_image_containing_address(self, addr, skipObjC = False):
return sccore.BNDSCViewLoadImageContainingAddress(self.handle, addr, skipObjC)
+ def process_objc_sections_for_image_with_install_name(self, installName):
+ return sccore.BNDSCViewProcessObjCSectionsForImageWithInstallName(self.handle, installName, False)
+
+ def process_all_objc_sections(self):
+ return sccore.BNDSCViewProcessAllObjCSections(self.handle)
+
@property
def caches(self):
count = ctypes.c_ulonglong()