From 11cf9f176f45f03df16bf69c5ca33789ba0ded22 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sat, 23 Jul 2016 21:29:52 -0400 Subject: Add endian argument to registering archs with views --- python/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index 9f090c2f..4d7e7fb8 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -649,11 +649,11 @@ class BinaryViewType(object): def is_valid_for_data(self, data): return core.BNIsBinaryViewTypeValidForData(self.handle, data.handle) - def register_arch(self, ident, arch): - core.BNRegisterArchitectureForViewType(self.handle, ident, arch.handle) + def register_arch(self, ident, endian, arch): + core.BNRegisterArchitectureForViewType(self.handle, ident, endian, arch.handle) - def get_arch(self, ident): - arch = core.BNGetArchitectureForViewType(self.handle, ident) + def get_arch(self, ident, endian): + arch = core.BNGetArchitectureForViewType(self.handle, ident, endian) if arch is None: return None return Architecture(arch) -- cgit v1.3.1