summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/analysis
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/analysis
parent94cb8acac1027a4deee933c84d7918f4a5ea4983 (diff)
Included interfaces into the Python module gathering all features.
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r--plugins/pychrysalide/analysis/content.c5
-rw-r--r--plugins/pychrysalide/analysis/loaded.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/plugins/pychrysalide/analysis/content.c b/plugins/pychrysalide/analysis/content.c
index fab7dfe..f332167 100644
--- a/plugins/pychrysalide/analysis/content.c
+++ b/plugins/pychrysalide/analysis/content.c
@@ -37,6 +37,7 @@
#include "../access.h"
+#include "../helpers.h"
#include "../arch/vmpa.h"
@@ -620,7 +621,9 @@ bool ensure_python_binary_content_is_registered(void)
module = get_access_to_python_module("pychrysalide.analysis");
dict = PyModule_GetDict(module);
- pyg_register_interface(dict, "BinContent", G_TYPE_BIN_CONTENT, type);
+
+ if (!register_interface_for_pygobject(dict, G_TYPE_BIN_CONTENT, type))
+ return false;
}
diff --git a/plugins/pychrysalide/analysis/loaded.c b/plugins/pychrysalide/analysis/loaded.c
index dd236ed..9c30261 100644
--- a/plugins/pychrysalide/analysis/loaded.c
+++ b/plugins/pychrysalide/analysis/loaded.c
@@ -37,6 +37,7 @@
#include "../access.h"
+#include "../helpers.h"
@@ -321,7 +322,9 @@ bool ensure_python_loaded_content_is_registered(void)
module = get_access_to_python_module("pychrysalide.analysis");
dict = PyModule_GetDict(module);
- pyg_register_interface(dict, "LoadedContent", G_TYPE_LOADED_CONTENT, type);
+
+ if (!register_interface_for_pygobject(dict, G_TYPE_LOADED_CONTENT, type))
+ return false;
}