diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-07-23 21:29:52 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-07-23 21:29:52 -0400 |
| commit | 11cf9f176f45f03df16bf69c5ca33789ba0ded22 (patch) | |
| tree | 8545794dfdef1fec42d481c12a55da6645540308 /python/__init__.py | |
| parent | 13491e5eb8d50c242cf6858b111e404ea9f79239 (diff) | |
Add endian argument to registering archs with views
Diffstat (limited to 'python/__init__.py')
| -rw-r--r-- | python/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
