summaryrefslogtreecommitdiff
path: root/plugins/libcsem
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-04-04 21:57:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-04-04 21:57:54 (GMT)
commit286ba13e0a5e908f9ebe67286bb6006adb4102fc (patch)
tree06d1ef353ae623c579a8fff5a74d22ecc0b9b862 /plugins/libcsem
parentc1cac2ce69f01deb99c5c91a803dfa04af90ef14 (diff)
Simplified the plugin interface.
Diffstat (limited to 'plugins/libcsem')
-rw-r--r--plugins/libcsem/Makefile.am3
-rw-r--r--plugins/libcsem/semantic.c7
-rw-r--r--plugins/libcsem/semantic.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/plugins/libcsem/Makefile.am b/plugins/libcsem/Makefile.am
index 077a5b5..00ad075 100644
--- a/plugins/libcsem/Makefile.am
+++ b/plugins/libcsem/Makefile.am
@@ -8,7 +8,8 @@ liblibcsem_la_SOURCES = \
exit.h exit.c \
semantic.h semantic.c
-liblibcsem_la_LDFLAGS = -L$(top_srcdir)/src/.libs -lchrysacore
+liblibcsem_la_LDFLAGS = \
+ -L$(top_srcdir)/src/.libs -lchrysacore
devdir = $(includedir)/chrysalide-$(subdir)
diff --git a/plugins/libcsem/semantic.c b/plugins/libcsem/semantic.c
index b5e2a1a..00e174f 100644
--- a/plugins/libcsem/semantic.c
+++ b/plugins/libcsem/semantic.c
@@ -25,14 +25,15 @@
#include <plugins/elf/format.h>
-#include <plugins/plugin-def.h>
+#include <plugins/self.h>
#include "exit.h"
-DEFINE_CHRYSALIDE_PLUGIN("GCSemPlugin", "LibC semantics", "Register semantic information relative to the libc", "0.1.0",
+DEFINE_CHRYSALIDE_PLUGIN("CSem", "Semantic information relative to the libc",
+ PACKAGE_VERSION, CHRYSALIDE_WEBSITE(""),
NO_REQ, AL(PGA_DISASSEMBLY_HOOKED_POST));
@@ -53,7 +54,7 @@ DEFINE_CHRYSALIDE_PLUGIN("GCSemPlugin", "LibC semantics", "Register semantic inf
* *
******************************************************************************/
-G_MODULE_EXPORT void process_binary_disassembly(const GPluginModule *plugin, PluginAction action, GLoadedBinary *binary, GtkStatusStack *status, GProcContext *context)
+G_MODULE_EXPORT void chrysalide_plugin_process_binary_disassembly(const GPluginModule *plugin, PluginAction action, GLoadedBinary *binary, GtkStatusStack *status, GProcContext *context)
{
if (action == PGA_DISASSEMBLY_HOOKED_POST)
{
diff --git a/plugins/libcsem/semantic.h b/plugins/libcsem/semantic.h
index fddbc58..58c14ef 100644
--- a/plugins/libcsem/semantic.h
+++ b/plugins/libcsem/semantic.h
@@ -31,7 +31,7 @@
/* Exécute une action pendant un désassemblage de binaire. */
-G_MODULE_EXPORT void process_binary_disassembly(const GPluginModule *, PluginAction, GLoadedBinary *, GtkStatusStack *, GProcContext *);
+G_MODULE_EXPORT void chrysalide_plugin_process_binary_disassembly(const GPluginModule *, PluginAction, GLoadedBinary *, GtkStatusStack *, GProcContext *);