3 * Copyright (C) 2004 Jan Kratochvil <project-udpgate@jankratochvil.net>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; exactly version 2 of June 1991 is required
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include <glib/gmessages.h>
27 /* #define CAPTIVE_G_MODULE_DEBUG 1 */
30 GModule *g_module_open(const gchar *file_name,GModuleFlags flags)
32 #ifdef CAPTIVE_G_MODULE_DEBUG
33 g_message("g_module_open:%s",file_name);
34 #endif /* CAPTIVE_G_MODULE_DEBUG */
38 gchar *g_module_build_path(const gchar *directory,const gchar *module_name)
40 #ifdef CAPTIVE_G_MODULE_DEBUG
41 g_message("g_module_build_path:%s,%s",directory,module_name);
42 #endif /* CAPTIVE_G_MODULE_DEBUG */
46 gboolean g_module_close(GModule *module)
48 #ifdef CAPTIVE_G_MODULE_DEBUG
49 g_message("g_module_close:%p",module);
50 #endif /* CAPTIVE_G_MODULE_DEBUG */
51 return FALSE; /* meaning: failure */
54 G_CONST_RETURN gchar *g_module_error(void)
56 #ifdef CAPTIVE_G_MODULE_DEBUG
57 g_message("g_module_error\n");
58 #endif /* CAPTIVE_G_MODULE_DEBUG */
62 void g_module_make_resident(GModule *module)
64 #ifdef CAPTIVE_G_MODULE_DEBUG
65 g_message("g_module_make_resident:%p",module);
66 #endif /* CAPTIVE_G_MODULE_DEBUG */
69 G_CONST_RETURN gchar *g_module_name(GModule *module)
71 #ifdef CAPTIVE_G_MODULE_DEBUG
72 g_message("g_module_name:%p",module);
73 #endif /* CAPTIVE_G_MODULE_DEBUG */
77 gboolean g_module_supported(void)
79 #ifdef CAPTIVE_G_MODULE_DEBUG
80 g_message("g_module_supported\n");
81 #endif /* CAPTIVE_G_MODULE_DEBUG */
82 return FALSE; /* meaning: unsupported */
85 gboolean g_module_symbol(GModule *module,const gchar *symbol_name,gpointer *symbol)
87 #ifdef CAPTIVE_G_MODULE_DEBUG
88 g_message("g_module_symbol:%p,%s",module,symbol_name);
89 #endif /* CAPTIVE_G_MODULE_DEBUG */
90 return FALSE; /* meaning: failure */