mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
applied patch from David Schleef <ds@schleef.org> which implements a
Fri Feb 20 02:39:03 2004 Tim Janik <timj@gtk.org> * applied patch from David Schleef <ds@schleef.org> which implements a G_MODULE_BIND_LOCAL flag to g_module_open() to disable global symbol registration.
This commit is contained in:
@@ -68,7 +68,8 @@ struct _GModule
|
||||
|
||||
/* --- prototypes --- */
|
||||
static gpointer _g_module_open (const gchar *file_name,
|
||||
gboolean bind_lazy);
|
||||
gboolean bind_lazy,
|
||||
gboolean bind_local);
|
||||
static void _g_module_close (gpointer handle,
|
||||
gboolean is_unref);
|
||||
static gpointer _g_module_self (void);
|
||||
@@ -153,7 +154,8 @@ g_module_set_error (const gchar *error)
|
||||
"not supported by this system"); return rv; }
|
||||
static gpointer
|
||||
_g_module_open (const gchar *file_name,
|
||||
gboolean bind_lazy)
|
||||
gboolean bind_lazy,
|
||||
gboolean bind_local)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
@@ -384,7 +386,8 @@ g_module_open (const gchar *file_name,
|
||||
name = real_name;
|
||||
}
|
||||
if (name)
|
||||
handle = _g_module_open (name, (flags & G_MODULE_BIND_LAZY) != 0);
|
||||
handle = _g_module_open (name, (flags & G_MODULE_BIND_LAZY) != 0,
|
||||
(flags & G_MODULE_BIND_LOCAL) != 0);
|
||||
}
|
||||
else
|
||||
g_module_set_error_unduped (g_strdup_printf ("unable to access file \"%s\"", file_name));
|
||||
|
Reference in New Issue
Block a user