diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-04-04 21:57:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-04-04 21:57:54 (GMT) |
commit | 286ba13e0a5e908f9ebe67286bb6006adb4102fc (patch) | |
tree | 06d1ef353ae623c579a8fff5a74d22ecc0b9b862 /plugins/readelf | |
parent | c1cac2ce69f01deb99c5c91a803dfa04af90ef14 (diff) |
Simplified the plugin interface.
Diffstat (limited to 'plugins/readelf')
-rw-r--r-- | plugins/readelf/reader.c | 7 | ||||
-rw-r--r-- | plugins/readelf/reader.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/readelf/reader.c b/plugins/readelf/reader.c index 53463e9..0c87660 100644 --- a/plugins/readelf/reader.c +++ b/plugins/readelf/reader.c @@ -25,7 +25,7 @@ #include <plugins/elf/format.h> -#include <plugins/plugin-def.h> +#include <plugins/self.h> #include "header.h" @@ -35,7 +35,8 @@ -DEFINE_CHRYSALIDE_PLUGIN("GElfReaderPlugin", "readelf", "Displays information about ELF files", "0.2.0", +DEFINE_CHRYSALIDE_PLUGIN("ElfReader", "Information about ELF files", + PACKAGE_VERSION, CHRYSALIDE_WEBSITE(""), NO_REQ, AL(PGA_FORMAT_PRELOAD)); @@ -55,7 +56,7 @@ DEFINE_CHRYSALIDE_PLUGIN("GElfReaderPlugin", "readelf", "Displays information ab * * ******************************************************************************/ -G_MODULE_EXPORT bool preload_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GPreloadInfo *info, GtkStatusStack *status) +G_MODULE_EXPORT bool chrysalide_plugin_preload_binary_format(const GPluginModule *plugin, PluginAction action, GBinFormat *format, GPreloadInfo *info, GtkStatusStack *status) { bool result; /* Bilan à retourner */ GElfFormat *elf_fmt; /* Version ELF */ diff --git a/plugins/readelf/reader.h b/plugins/readelf/reader.h index 440df67..8c280a4 100644 --- a/plugins/readelf/reader.h +++ b/plugins/readelf/reader.h @@ -31,7 +31,7 @@ /* Etablit des symboles complémentaires dans un format ELF. */ -G_MODULE_EXPORT bool preload_binary_format(const GPluginModule *, PluginAction, GBinFormat *, GPreloadInfo *, GtkStatusStack *); +G_MODULE_EXPORT bool chrysalide_plugin_preload_binary_format(const GPluginModule *, PluginAction, GBinFormat *, GPreloadInfo *, GtkStatusStack *); |