From 13a793f7ad19f43ff97c058becb76182b0159452 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 15 May 2019 15:17:57 -0700 Subject: first half of the refactor adding getters and setters for init created properties --- python/callingconvention.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'python/callingconvention.py') diff --git a/python/callingconvention.py b/python/callingconvention.py index ee42caca..92aa30f2 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -53,7 +53,7 @@ class CallingConvention(object): if arch is None or name is None: self.handle = None raise ValueError("Must specify either handle or architecture and name") - self.arch = arch + self._arch = arch self._pending_reg_lists = {} self._cb = core.BNCustomCallingConvention() self._cb.context = 0 @@ -443,3 +443,12 @@ class CallingConvention(object): func_obj = func.handle out_var = core.BNGetParameterVariableForIncomingVariable(self.handle, in_buf, func_obj) return binaryninja.function.Variable(func, out_var.type, out_var.index, out_var.storage) + + @property + def arch(self): + """ """ + return self._arch + + @arch.setter + def arch(self, value): + self._arch = value -- cgit v1.3.1