diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-05-12 08:13:40 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-05-12 08:13:40 (GMT) |
commit | 56320dc74baf04854b36d045b4ef8987dffdd2c5 (patch) | |
tree | 0506b69e7103e48449135c1ac5bc98aae94c983f | |
parent | 8a1a07f50f78e4a4f32d41c80db6c40e6c6225f3 (diff) |
Updated some plugin interfaces.
-rw-r--r-- | plugins/devdbg/speed.c | 8 | ||||
-rw-r--r-- | plugins/libcsem/semantic.c | 4 | ||||
-rw-r--r-- | plugins/readdex/reader.c | 4 | ||||
-rw-r--r-- | plugins/readelf/reader.c | 4 | ||||
-rw-r--r-- | plugins/readmc/reader.c | 4 | ||||
-rw-r--r-- | src/plugins/plugin-def.h | 5 |
6 files changed, 12 insertions, 17 deletions
diff --git a/plugins/devdbg/speed.c b/plugins/devdbg/speed.c index 77c407a..eeb0717 100644 --- a/plugins/devdbg/speed.c +++ b/plugins/devdbg/speed.c @@ -38,10 +38,10 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("GSpeedPlugin", "Speed Measure", "Tracks to time spent for disassembling code", "0.1.0", - PGA_FORMAT_ANALYSIS_STARTED,PGA_FORMAT_ANALYSIS_ENDED, - PGA_FORMAT_POST_ANALYSIS_STARTED, PGA_FORMAT_POST_ANALYSIS_ENDED, - PGA_DISASSEMBLY_STARTED, PGA_DISASSEMBLY_ENDED); +DEFINE_CHRYSALIDE_PLUGIN("GSpeedPlugin", "Speed Measure", "Tracks to time spent for disassembling code", "0.1.0", + NO_REQ, AL(PGA_FORMAT_ANALYSIS_STARTED,PGA_FORMAT_ANALYSIS_ENDED, + PGA_FORMAT_POST_ANALYSIS_STARTED, PGA_FORMAT_POST_ANALYSIS_ENDED, + PGA_DISASSEMBLY_STARTED, PGA_DISASSEMBLY_ENDED)); /* Mémorisation des résultats de chronométrages */ diff --git a/plugins/libcsem/semantic.c b/plugins/libcsem/semantic.c index de87012..07ac6ec 100644 --- a/plugins/libcsem/semantic.c +++ b/plugins/libcsem/semantic.c @@ -32,8 +32,8 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("GCSemPlugin", "LibC semantics", "Register semantic information relative to the libc", "0.1.0", - PGA_DISASSEMBLY_HOOKED_POST); +DEFINE_CHRYSALIDE_PLUGIN("GCSemPlugin", "LibC semantics", "Register semantic information relative to the libc", "0.1.0", + NO_REQ, AL(PGA_DISASSEMBLY_HOOKED_POST)); diff --git a/plugins/readdex/reader.c b/plugins/readdex/reader.c index 2009ad6..ca68cc4 100644 --- a/plugins/readdex/reader.c +++ b/plugins/readdex/reader.c @@ -34,8 +34,8 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("GDexReaderPlugin", "readdex", "Displays information about DEX files", "0.2.0", - PGA_FORMAT_PRELOAD); +DEFINE_CHRYSALIDE_PLUGIN("GDexReaderPlugin", "readdex", "Displays information about DEX files", "0.2.0", + NO_REQ, AL(PGA_FORMAT_PRELOAD)); /****************************************************************************** diff --git a/plugins/readelf/reader.c b/plugins/readelf/reader.c index ba4d17a..4e4e768 100644 --- a/plugins/readelf/reader.c +++ b/plugins/readelf/reader.c @@ -35,8 +35,8 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("GElfReaderPlugin", "readelf", "Displays information about ELF files", "0.2.0", - PGA_FORMAT_PRELOAD); +DEFINE_CHRYSALIDE_PLUGIN("GElfReaderPlugin", "readelf", "Displays information about ELF files", "0.2.0", + NO_REQ, AL(PGA_FORMAT_PRELOAD)); /****************************************************************************** diff --git a/plugins/readmc/reader.c b/plugins/readmc/reader.c index e492eeb..6b46177 100644 --- a/plugins/readmc/reader.c +++ b/plugins/readmc/reader.c @@ -36,8 +36,8 @@ -DEFINE_CHRYSALIDE_ACTIVE_PLUGIN("GMCReaderPlugin", "readmc", "Displays information about Mobicore files", "0.2.0", - PGA_FORMAT_PRELOAD); +DEFINE_CHRYSALIDE_PLUGIN("GMCReaderPlugin", "readmc", "Displays information about Mobicore files", "0.2.0", + NO_REQ, AL(PGA_FORMAT_PRELOAD)); /****************************************************************************** diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index 3717035..c559d83 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -303,10 +303,5 @@ G_MODULE_EXPORT const plugin_interface _chrysalide_plugin = { \ } -/* Interfaçage primaire avec Chrysalide */ -#define DEFINE_CHRYSALIDE_ACTIVE_PLUGIN(t, n, d, v, ...) \ - DEFINE_CHRYSALIDE_PLUGIN(t, n, d, v, EMPTY_PG_LIST(.required), AL( __VA_ARGS__ )) - - #endif /* _PLUGINS_PLUGIN_DEF_H */ |