From f8ed23a6606578d0dfd3ed5308d02a3b9c5ad058 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 22 Mar 2010 20:13:35 +0100 Subject: [PATCH] Make the GIO module cacheable Implement g_io_module_query() method. --- exo-gio-module/Makefile.am | 2 +- exo-gio-module/exo-module.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/exo-gio-module/Makefile.am b/exo-gio-module/Makefile.am index 86db199..642623e 100644 --- a/exo-gio-module/Makefile.am +++ b/exo-gio-module/Makefile.am @@ -33,7 +33,7 @@ libexo_module_1_la_LDFLAGS = \ -avoid-version \ -module \ -no-undefined \ - -export-symbols-regex '^g_io_module_(load|unload)' + -export-symbols-regex '^g_io_module_(load|unload|query)' libexo_module_1_la_DEPENDENCIES = \ $(top_builddir)/exo/libexo-$(LIBEXO_VERSION_API).la diff --git a/exo-gio-module/exo-module.c b/exo-gio-module/exo-module.c index 0d7cbd8..4ee1a0c 100644 --- a/exo-gio-module/exo-module.c +++ b/exo-gio-module/exo-module.c @@ -181,3 +181,13 @@ G_MODULE_EXPORT void g_io_module_unload (GIOModule *module) { } + +G_MODULE_EXPORT gchar ** +g_io_module_query (void) +{ + gchar *eps[] = { + G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME, + NULL + }; + return g_strdupv (eps); +} -- 1.6.6.GIT