diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-10-14 13:54:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-10-14 13:54:04 (GMT) |
commit | e505ea74b63394100f47233295f0a1835ffb99c2 (patch) | |
tree | 8ed09728aff7763ae0e55226090cfa71a7d419a9 /src/plugins/plugin.c | |
parent | fc010082fcc5371ff198b5b3321eb81fbe2a6013 (diff) |
Refined measures of elapsed time.
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.* |