diff options
Diffstat (limited to 'src/plugins/plugin-int.h')
-rw-r--r-- | src/plugins/plugin-int.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/plugins/plugin-int.h b/src/plugins/plugin-int.h index a4f3cb6..56753e0 100644 --- a/src/plugins/plugin-int.h +++ b/src/plugins/plugin-int.h @@ -29,12 +29,16 @@ #include "plugin-def.h" +#include "../gui/panels/log.h" +/* Précise le nom associé au greffon. */ +typedef char * (* get_plugin_name_fc) (void); + /* Procède à l'initialisation du greffon */ -typedef bool (* init_plugin_fc) (GObject *); +typedef bool (* init_plugin_fc) (GPluginModule *, GObject *); /* Fournit une indication sur le type d'opération(s) menée(s). */ typedef PluginAction (* get_plugin_action_fc) (const GPluginModule *); @@ -42,6 +46,9 @@ typedef PluginAction (* get_plugin_action_fc) (const GPluginModule *); /* Identifie un format à associer à un contenu binaire. */ typedef MatchingFormatAction (* is_matching_fc) (const GPluginModule *, char **, bin_t **, off_t *); +/* Exécute une action définie sur un binaire chargé. */ +typedef bool (* execute_action_on_binary_fc) (const GPluginModule *, GOpenidaBinary *, PluginAction); + /* Exécute une action relative à un débogueur. */ typedef bool (* execute_on_debugger_fc) (const GPluginModule *, GBinaryDebugger *, PluginAction); @@ -53,6 +60,7 @@ struct _GPluginModule GModule *module; /* Abstration de manipulation */ + char *name; /* Nom associé au greffon */ PluginType type; /* Type(s) du greffon */ init_plugin_fc init; /* Procédure d'initialisation */ @@ -75,8 +83,11 @@ struct _GPluginModuleClass +/* Présente dans le journal un message simple. */ +void g_plugin_module_log_simple_message(const GPluginModule *, LogMessageType, const char *); - +/* Présente dans le journal un message complexe. */ +void g_plugin_module_log_variadic_message(const GPluginModule *, LogMessageType, const char *, ...); |