summaryrefslogtreecommitdiff
path: root/plugins/lnxsyscalls/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/lnxsyscalls/core.c')
-rw-r--r--plugins/lnxsyscalls/core.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/lnxsyscalls/core.c b/plugins/lnxsyscalls/core.c
index fffb72f..02e109d 100644
--- a/plugins/lnxsyscalls/core.c
+++ b/plugins/lnxsyscalls/core.c
@@ -29,6 +29,7 @@
#include <core/global.h>
#include <core/nproc.h>
+#include <plugins/self.h>
#include "db.h"
@@ -37,8 +38,9 @@
-DEFINE_CHRYSALIDE_PLUGIN("GLnxSyscallsPlugin", "Linux System Calls", "Describes each Linux system call with its arguments", \
- "0.1.0", EMPTY_PG_LIST(.required), AL(PGA_PLUGIN_INIT, PGA_DISASSEMBLY_ENDED));
+DEFINE_CHRYSALIDE_PLUGIN("LinuxSyscalls", "Describes each Linux system call with its arguments",
+ PACKAGE_VERSION, CHRYSALIDE_WEBSITE(""),
+ NO_REQ, AL(PGA_PLUGIN_INIT, PGA_DISASSEMBLY_ENDED));
@@ -59,11 +61,11 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin)
bool result; /* Bilan à retourner */
sqlite3 *db; /* Base de données présente */
- db = open_syscalls_database(plugin);
+ db = open_syscalls_database();
if (db != NULL)
{
- introduce_syscalls_database(db, plugin);
+ introduce_syscalls_database(db);
close_syscalls_database(db);
@@ -94,7 +96,7 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin)
* *
******************************************************************************/
-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)
{
GBinFormat *format; /* Format du binaire chargé */
const char *arch; /* Architecture d'exécution */
@@ -121,8 +123,7 @@ G_MODULE_EXPORT void process_binary_disassembly(const GPluginModule *plugin, Plu
else
{
- g_plugin_module_log_variadic_message(plugin, LMT_WARNING,
- _("No suitable backend to track syscalls!"));
+ log_plugin_simple_message(LMT_WARNING, _("No suitable backend to track syscalls!"));
goto pbd_exit;
}
@@ -147,7 +148,7 @@ G_MODULE_EXPORT void process_binary_disassembly(const GPluginModule *plugin, Plu
else
end = begin + run_size;
- hunter = g_gate_hunter_new(plugin, binary, context, begin, end, id, hops);
+ hunter = g_gate_hunter_new(binary, context, begin, end, id, hops);
g_work_queue_schedule_work(queue, G_DELAYED_WORK(hunter), gid);