diff options
Diffstat (limited to 'plugins/pychrysalide/analysis')
-rw-r--r-- | plugins/pychrysalide/analysis/content.c | 5 | ||||
-rw-r--r-- | plugins/pychrysalide/analysis/loaded.c | 5 |
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; } |