diff options
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r-- | src/plugins/plugin.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 40f44ce..b63b263 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -334,6 +334,16 @@ GPluginModule *g_plugin_module_new(const gchar *filename) switch (action) { + case PGA_FORMAT_ANALYSIS_STARTED: + case PGA_FORMAT_ANALYSIS_ENDED: + case PGA_FORMAT_POST_ANALYSIS_STARTED: + case PGA_FORMAT_POST_ANALYSIS_ENDED: + if (!load_plugin_symbol(result->module, + "handle_binary_format_analysis", + &result->handle_fmt_analysis)) + goto bad_plugin; + break; + case PGA_FORMAT_LOADER_LAST: if (!load_plugin_symbol(result->module, "handle_binary_format", &result->handle_format)) @@ -781,6 +791,29 @@ void g_plugin_module_handle_loaded_content(const GPluginModule *plugin, PluginAc * Paramètres : plugin = greffon à manipuler. * * action = type d'action attendue. * * format = format de binaire à manipuler pendant l'opération. * +* gid = groupe de travail dédié. * +* status = barre de statut à tenir informée. * +* * +* Description : Procède à une opération liée à l'analyse d'un format. * +* * +* Retour : Bilan de l'exécution du traitement. * +* * +* Remarques : - * +* * +******************************************************************************/ + +bool g_plugin_module_handle_binary_format_analysis(const GPluginModule *plugin, PluginAction action, GBinFormat *format, wgroup_id_t gid, GtkStatusStack *status) +{ + return plugin->handle_fmt_analysis(plugin, action, format, gid, status); + +} + + +/****************************************************************************** +* * +* Paramètres : plugin = greffon à manipuler. * +* action = type d'action attendue. * +* format = format de binaire à manipuler pendant l'opération. * * status = barre de statut à tenir informée. * * * * Description : Procède à une opération liée au format de fichier uniquement.* |