diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-05-21 17:17:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-05-21 17:17:30 (GMT) |
commit | 67ed9f05fa92141369d543dbaa6108b5b5bd6529 (patch) | |
tree | 52fdd34cc770e9e06d29274841cb33a545c4dd87 /plugins/pychrysalide/arch | |
parent | d7ede72c4351b11c064ccfee7036c7d8461ad2e8 (diff) |
Register the preload information class in the Python bindings.
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/context.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/pychrysalide/arch/context.c b/plugins/pychrysalide/arch/context.c index ce1ef01..b1803a4 100644 --- a/plugins/pychrysalide/arch/context.c +++ b/plugins/pychrysalide/arch/context.c @@ -1,6 +1,6 @@ /* Chrysalide - Outil d'analyse de fichiers binaires - * context.c - équivalent Python du fichier "arch/context.h" + * context.c - équivalent Python du fichier "arch/context.c" * * Copyright (C) 2018 Cyrille Bagard * @@ -39,6 +39,7 @@ #include "../helpers.h" #include "../analysis/db/item.h" #include "../arch/vmpa.h" +#include "../format/preload.h" @@ -518,6 +519,9 @@ bool ensure_python_proc_context_is_registered(void) dict = PyModule_GetDict(module); + if (!ensure_python_preload_info_is_registered()) + return false; + if (!register_class_for_pygobject(dict, G_TYPE_PROC_CONTEXT, type, &PyGObject_Type)) return false; |