summaryrefslogtreecommitdiff
path: root/src/plugins/native.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-01-16 01:00:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-01-16 01:00:28 (GMT)
commit64b690f0038e01e807c1ec8d62041057fd38b4b8 (patch)
tree1de592f2379547abfb8aedc452958dbdace9b658 /src/plugins/native.c
parent8be5b3fb8a516380fc88fd900a98238ce8564682 (diff)
Improve the plugins management.gtk4
Diffstat (limited to 'src/plugins/native.c')
-rw-r--r--src/plugins/native.c29
1 files changed, 23 insertions, 6 deletions
diff --git a/src/plugins/native.c b/src/plugins/native.c
index fedccbe..de20abe 100644
--- a/src/plugins/native.c
+++ b/src/plugins/native.c
@@ -131,12 +131,6 @@ static void g_native_plugin_init(GNativePlugin *plugin)
static void g_native_plugin_dispose(GNativePlugin *plugin)
{
- if (plugin->module != NULL)
- {
- g_module_close(plugin->module);
- plugin->module = NULL;
- }
-
G_OBJECT_CLASS(g_native_plugin_parent_class)->dispose(G_OBJECT(plugin));
}
@@ -194,6 +188,29 @@ bool g_native_plugin_create(GNativePlugin *plugin, const char *name, const char
}
+/******************************************************************************
+* *
+* Paramètres : plugin = greffon à consulter. *
+* *
+* Description : Renvoie la structure opaque associée au module en mémoire. *
+* *
+* Retour : Structure de chargement côté GLib. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GModule *g_native_plugin_get_module(const GNativePlugin *plugin)
+{
+ GModule *result; /* Accès au module à renvoyer */
+
+ result = plugin->module;
+
+ return result;
+
+}
+
+
/* ---------------------------------------------------------------------------------- */
/* IMPLEMENTATION DES FONCTIONS DE CLASSE */