summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/arch/module.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-08-06 20:29:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-08-06 20:29:20 (GMT)
commitfc49e98dc2b3e0ae08a5874ecacaef046a0f3ec1 (patch)
treee121c5eb5dd0629554a498f8e1a1cce3fc0715b4 /plugins/pychrysa/arch/module.c
parentfacec716100f598a8694889274a4589c75c14722 (diff)
Saved progress toward the Android permissions display.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@258 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/arch/module.c')
-rw-r--r--plugins/pychrysa/arch/module.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/pychrysa/arch/module.c b/plugins/pychrysa/arch/module.c
index 59b0c2c..8092b6b 100644
--- a/plugins/pychrysa/arch/module.c
+++ b/plugins/pychrysa/arch/module.c
@@ -25,8 +25,7 @@
#include "module.h"
-#include "archbase.h"
-#include "processor.h"
+#include "instruction.h"
@@ -54,18 +53,19 @@ bool add_arch_module_to_python_module(PyObject *super)
{ NULL }
};
- module = Py_InitModule("pyoida.arch", py_arch_methods);
+ module = Py_InitModule("pychrysalide.arch", py_arch_methods);
if (module == NULL) return false;
Py_INCREF(module);
- ret = PyModule_AddObject(super, "pyoida.arch", module);
+ ret = PyModule_AddObject(super, "pychrysalide.arch", module);
- if (ret != 0) /* ... */;
+ result = (ret != 0);
- result = add_arch_vmpa_to_python_module(module);
- result = add_arch_processor_to_python_module(module);
+ if (ret != 0) /* ... */;
+ result &= register_python_arch_instruction(module);
+ result &= register_python_arch_instruction_iterator(module);
return true;