summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-10-16 19:20:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-10-16 19:20:29 (GMT)
commit3a2dcf9f1e6718b0a45feed8eefadb71be66f4ac (patch)
tree1867d8f1b108d2e954697257c8af8c8301a2eb7f /plugins/pychrysa/arch
parent83dccba3a9b6c18d6fe7b6f30794a16336803962 (diff)
Extended the Python bindings in order to load and read contents.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@597 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/pychrysa/arch')
-rw-r--r--plugins/pychrysa/arch/vmpa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pychrysa/arch/vmpa.c b/plugins/pychrysa/arch/vmpa.c
index 350f61b..65e0387 100644
--- a/plugins/pychrysa/arch/vmpa.c
+++ b/plugins/pychrysa/arch/vmpa.c
@@ -34,6 +34,11 @@
+#include <common/endianness.h> /* TODO : à bouger vers base ? */
+
+
+
+
/* ---------------------- DEFINITION D'UNE POSITION EN MEMOIRE ---------------------- */
@@ -526,6 +531,11 @@ static bool py_vmpa_define_constants(PyTypeObject *obj_type)
result &= PyDict_AddIntMacro(obj_type, VMPA_NO_PHYSICAL);
result &= PyDict_AddIntMacro(obj_type, VMPA_NO_VIRTUAL);
+ /* TODO : à bouger vers base ? */
+ result &= PyDict_AddIntMacro(obj_type, SRE_LITTLE);
+ result &= PyDict_AddIntMacro(obj_type, SRE_MIDDLE);
+ result &= PyDict_AddIntMacro(obj_type, SRE_BIG);
+
return result;
}