summaryrefslogtreecommitdiff
path: root/src/plugins/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r--src/plugins/plugin.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index d1e90c8..58671b6 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -272,6 +272,13 @@ GPluginModule *g_plugin_module_new(const gchar *filename)
goto bad_plugin;
break;
+ case PGA_CONTENT_ANALYZED:
+ if (!load_plugin_symbol(result->module,
+ "chrysalide_plugin_handle_loaded_content",
+ &result->handle_loaded))
+ goto bad_plugin;
+ break;
+
default:
log_variadic_message(LMT_WARNING,
_("Unknown action '0x%02x' in plugin '%s'..."),
@@ -707,6 +714,29 @@ void g_plugin_module_handle_binary_content(const GPluginModule *plugin, PluginAc
/******************************************************************************
* *
+* Paramètres : plugin = greffon à manipuler. *
+* action = type d'action attendue. *
+* content = contenu chargé à traiter. *
+* wid = identifiant du groupe de traitement. *
+* status = barre de statut à tenir informée. *
+* *
+* Description : Procède à une opération liée à un contenu chargé. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void g_plugin_module_handle_loaded_content(const GPluginModule *plugin, PluginAction action, GLoadedContent *content, wgroup_id_t wid, GtkStatusStack *status)
+{
+ return plugin->handle_loaded(plugin, action, content, wid, status);
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : plugin = greffon à manipuler. *
* action = type d'action attendue. *
* format = format de binaire à manipuler pendant l'opération. *