diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-09-18 20:12:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-09-18 20:12:26 (GMT) |
commit | aa3cb06f056ccf1a0467eaff8aa4b40701902f5e (patch) | |
tree | dde8cdc10459f932235ee8709dda3ae6b164c752 /src/plugins | |
parent | 175e8193759e01b45b1f6d2d7970e2993ec8c364 (diff) |
Removed the old way to load binaries.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/plugin-def.h | 20 | ||||
-rw-r--r-- | src/plugins/plugin.c | 15 |
2 files changed, 2 insertions, 33 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index b8b0e0d..8b7ac7d 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -130,14 +130,11 @@ typedef enum _PluginAction * DPC_BINARY_PROCESSING | DPS_FORMAT */ - /* Détection et chargement */ - PGA_FORMAT_MATCHER = DPC_BINARY_PROCESSING | DPS_FORMAT | DEFINE_PLUGIN_ACTION(0), - /* Accompagnement du chargement (fin) */ - PGA_FORMAT_LOADER_LAST = DPC_BINARY_PROCESSING | DPS_FORMAT | DEFINE_PLUGIN_ACTION(1), + PGA_FORMAT_LOADER_LAST = DPC_BINARY_PROCESSING | DPS_FORMAT | DEFINE_PLUGIN_ACTION(0), /* Accompagnement du chargement (fin) */ - PGA_FORMAT_PRELOAD = DPC_BINARY_PROCESSING | DPS_FORMAT | DEFINE_PLUGIN_ACTION(2), + PGA_FORMAT_PRELOAD = DPC_BINARY_PROCESSING | DPS_FORMAT | DEFINE_PLUGIN_ACTION(1), /** * DPC_BINARY_PROCESSING | DPS_DISASSEMBLY @@ -269,19 +266,6 @@ typedef enum _PluginAction //typedef PluginAction (* get_plugin_action_fc) (void); -/* PGA_FORMAT_MATCHER */ - -/* Bilans d'une reconnaissance */ -typedef enum _MatchingFormatAction -{ - MFA_NONE, /* Aucune détection */ - MFA_MATCHED, /* Format reconnu */ - MFA_RELOAD, /* Rechargemet opéré */ - - MFA_COUNT - -} MatchingFormatAction; - diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c index 7780f43..d309332 100644 --- a/src/plugins/plugin.c +++ b/src/plugins/plugin.c @@ -39,9 +39,6 @@ #include "plugin-int.h" -#include "../core/formats.h" - - /* Initialise la classe des greffons. */ static void g_plugin_module_class_init(GPluginModuleClass *); @@ -199,7 +196,6 @@ GPluginModule *g_plugin_module_new(const gchar *filename) uint32_t action; /* Identifiant d'une action */ uint32_t category; /* Catégorie principale */ uint32_t sub; /* Sous-catégorie visée */ - format_match_fc matcher; /* Routine de reconnaissance */ result = g_object_new(G_TYPE_PLUGIN_MODULE, NULL); @@ -334,17 +330,6 @@ GPluginModule *g_plugin_module_new(const gchar *filename) switch (action) { - case PGA_FORMAT_MATCHER: - - if (!load_plugin_symbol(result->module, - "is_format_matching", &matcher)) - goto bad_plugin; - - if (!register_format_matcher(matcher, result)) - goto bad_plugin; - - break; - case PGA_FORMAT_LOADER_LAST: if (!load_plugin_symbol(result->module, "handle_binary_format", &result->handle_format)) |