summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-28 22:36:19 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-28 22:36:19 (GMT)
commit7560e598bf1136b4e7989124fe2b4665508b67b3 (patch)
tree8426c8353369841fc93cf977b6743ba6ced84ec0 /plugins/pychrysalide/arch
parent94cb8acac1027a4deee933c84d7918f4a5ea4983 (diff)
Included interfaces into the Python module gathering all features.
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r--plugins/pychrysalide/arch/feeder.c5
-rw-r--r--plugins/pychrysalide/arch/targetableop.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/pychrysalide/arch/feeder.c b/plugins/pychrysalide/arch/feeder.c
index b50124d..1dd9373 100644
--- a/plugins/pychrysalide/arch/feeder.c
+++ b/plugins/pychrysalide/arch/feeder.c
@@ -33,6 +33,7 @@
#include "../access.h"
+#include "../helpers.h"
@@ -104,7 +105,9 @@ bool ensure_python_proxy_feeder_is_registered(void)
module = get_access_to_python_module("pychrysalide.arch");
dict = PyModule_GetDict(module);
- pyg_register_interface(dict, "ProxyFeeder", G_TYPE_PROXY_FEEDER, type);
+
+ if (!register_interface_for_pygobject(dict, G_TYPE_PROXY_FEEDER, type))
+ return false;
}
diff --git a/plugins/pychrysalide/arch/targetableop.c b/plugins/pychrysalide/arch/targetableop.c
index 0fb23e0..52d00e0 100644
--- a/plugins/pychrysalide/arch/targetableop.c
+++ b/plugins/pychrysalide/arch/targetableop.c
@@ -38,6 +38,7 @@
#include "processor.h"
#include "vmpa.h"
#include "../access.h"
+#include "../helpers.h"
#include "../format/format.h"
@@ -177,7 +178,9 @@ bool ensure_python_targetable_operand_is_registered(void)
module = get_access_to_python_module("pychrysalide.arch");
dict = PyModule_GetDict(module);
- pyg_register_interface(dict, "TargetableOperand", G_TYPE_TARGETABLE_OPERAND, type);
+
+ if (!register_interface_for_pygobject(dict, G_TYPE_TARGETABLE_OPERAND, type))
+ return false;
}