summaryrefslogtreecommitdiff
path: root/plugins/arm/python/processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/arm/python/processor.c')
-rw-r--r--plugins/arm/python/processor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/arm/python/processor.c b/plugins/arm/python/processor.c
index 1681f52..6a31611 100644
--- a/plugins/arm/python/processor.c
+++ b/plugins/arm/python/processor.c
@@ -93,14 +93,17 @@ PyTypeObject *get_python_arm_processor_type(void)
bool register_python_arm_processor(PyObject *module)
{
- PyTypeObject *py_arm_processor_type; /* Type Python 'BinContent' */
+ PyTypeObject *type; /* Type Python 'ArmProcessor' */
PyObject *dict; /* Dictionnaire du module */
- py_arm_processor_type = get_python_arm_processor_type();
+ type = get_python_arm_processor_type();
dict = PyModule_GetDict(module);
- if (!register_class_for_pygobject(dict, G_TYPE_ARM_PROCESSOR, py_arm_processor_type, get_python_arch_processor_type()))
+ if (!ensure_python_arch_processor_is_registered())
+ return false;
+
+ if (!register_class_for_pygobject(dict, G_TYPE_ARM_PROCESSOR, type))
return false;
return true;