summaryrefslogtreecommitdiff
path: root/plugins/pe/core.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-01-12 14:23:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-01-12 14:23:01 (GMT)
commitbaa854bfcc969022a00617b58a661e37f345cab5 (patch)
tree093d3ace4c2e1ad8fa37ce5e08723f768fffbada /plugins/pe/core.h
parent0fdba5bd3e2c9ed913619990dbda7925867e46c5 (diff)
Rewrite the plugin system.
Diffstat (limited to 'plugins/pe/core.h')
-rw-r--r--plugins/pe/core.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/pe/core.h b/plugins/pe/core.h
index 2d9aeb5..5c0696f 100644
--- a/plugins/pe/core.h
+++ b/plugins/pe/core.h
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* core.h - prototypes pour l'intégration du support du format PE
*
- * Copyright (C) 2017-2018 Cyrille Bagard
+ * Copyright (C) 2017-2025 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -25,16 +25,18 @@
#define _PLUGINS_PE_CORE_H
+#include <glibext/helpers.h>
#include <plugins/plugin.h>
-#include <plugins/plugin-int.h>
-/* Prend acte du chargement du greffon. */
-G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *);
+#define G_TYPE_PE_PLUGIN (g_pe_plugin_get_type())
-/* Procède à une opération liée à un contenu binaire. */
-//G_MODULE_EXPORT void chrysalide_plugin_handle_binary_content(const GPluginModule *, PluginAction, GBinContent *, wgroup_id_t, GtkStatusStack *);
+DECLARE_GTYPE(GPePlugin, g_pe_plugin, G, PE_PLUGIN);
+
+
+/* Crée un module pour un greffon de support PE. */
+GPluginModule *g_pe_plugin_new(GModule *);