summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch
diff options
context:
space:
mode:
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;
}