diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-02-11 17:05:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-02-11 17:05:54 (GMT) |
commit | bf879f2562545ab7de23f9d38364b7bd4b43fb2c (patch) | |
tree | 6154160307cbca304ea9e1de178d8c2dfc8e0928 /src/plugins/plugin-int.h | |
parent | abd96dbbe27246e9303173e5e2f47b2e4cedbcb7 (diff) |
Registered all the supported formats in the system code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@471 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/plugins/plugin-int.h')
-rw-r--r-- | src/plugins/plugin-int.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/plugins/plugin-int.h b/src/plugins/plugin-int.h index 5f7eac2..7a3fb3e 100644 --- a/src/plugins/plugin-int.h +++ b/src/plugins/plugin-int.h @@ -34,6 +34,10 @@ + +/* Indique si le format peut être pris en charge ici. */ +typedef bool (* pg_format_is_matching) (const GPluginModule *, GBinContent **); + /* Exécute une action pendant un désassemblage de binaire. */ typedef void (* pg_process_disassembly) (const GPluginModule *, PluginAction, GLoadedBinary *); @@ -55,7 +59,7 @@ typedef void (* exit_plugin_fc) (GPluginModule *); 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 *); +//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 *, GLoadedBinary *, PluginAction); @@ -84,12 +88,14 @@ struct _GPluginModule exit_plugin_fc exit; /* Procédure d'extinction */ get_plugin_action_fc get_action; /* Opération(s) menée(s) */ - is_matching_fc is_matching; /* Recherche de correspondance */ + //is_matching_fc is_matching; /* Recherche de correspondance */ execute_action_on_binary_fc exec_on_bin;/* Action sur un binaire */ //execute_on_debugger_fc handle_debugger; /* Action liée à un débogueur */ + pg_format_is_matching is_matching; /* Recherche de correspondance */ + pg_process_disassembly proc_disass; /* Catégorie 'désassemblage' */ }; |