diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 18:46:08 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-18 18:46:08 (GMT) |
commit | 0f914ad3fdcc1ebac5789b55b9677e7868016e21 (patch) | |
tree | bafc46ac54d02ff35310c3433615e6b74010a920 /src/plugins/plugin.c | |
parent | 23bc425f9c35c31a80d65d824452c8728614a206 (diff) |
Allowed to attach debug information to formats.
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r-- | src/plugins/plugin.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 161d6a6..1608032 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -377,15 +377,15 @@ GPluginModule *g_plugin_module_new(const gchar *filename) goto bad_plugin; break; - case PGA_FORMAT_LOADER_LAST: + case PGA_FORMAT_PRELOAD: if (!load_plugin_symbol(result->module, - "handle_binary_format", &result->handle_format)) + "preload_binary_format", &result->preload_format)) goto bad_plugin; break; - case PGA_FORMAT_PRELOAD: + case PGA_FORMAT_ATTACH_DEBUG: if (!load_plugin_symbol(result->module, - "preload_binary_format", &result->preload_format)) + "chrysalide_plugin_attach_debug", &result->attach_debug)) goto bad_plugin; break; @@ -869,9 +869,10 @@ bool g_plugin_module_handle_binary_format_analysis(const GPluginModule *plugin, * Paramètres : plugin = greffon à manipuler. * * action = type d'action attendue. * * format = format de binaire à manipuler pendant l'opération. * +* info = informations à constituer en avance de phase. * * status = barre de statut à tenir informée. * * * -* Description : Procède à une opération liée au format de fichier uniquement.* +* Description : Procède à un préchargement de format de fichier. * * * * Retour : Bilan de l'exécution du traitement. * * * @@ -879,9 +880,9 @@ bool g_plugin_module_handle_binary_format_analysis(const GPluginModule *plugin, * * ******************************************************************************/ -bool g_plugin_module_handle_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GtkStatusStack *status) +bool g_plugin_module_preload_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GPreloadInfo *info, GtkStatusStack *status) { - return plugin->handle_format(plugin, action, format, status); + return plugin->preload_format(plugin, action, format, info, status); } @@ -891,20 +892,18 @@ bool g_plugin_module_handle_binary_format(const GPluginModule *plugin, PluginAct * Paramètres : plugin = greffon à manipuler. * * action = type d'action attendue. * * format = format de binaire à manipuler pendant l'opération. * -* info = informations à constituer en avance de phase. * -* status = barre de statut à tenir informée. * * * -* Description : Procède à un préchargement de format de fichier. * +* Description : Procède au rattachement d'éventuelles infos de débogage. * * * -* Retour : Bilan de l'exécution du traitement. * +* Retour : - * * * * Remarques : - * * * ******************************************************************************/ -bool g_plugin_module_preload_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GPreloadInfo *info, GtkStatusStack *status) +void g_plugin_module_attach_debug_format(const GPluginModule *plugin, PluginAction action, GExeFormat *format) { - return plugin->preload_format(plugin, action, format, info, status); + plugin->attach_debug(plugin, action, format); } |