mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 07:08:54 +02:00
[docs] Reference g_module_open instead of dlopen
dlopen() is not cross platform, it's better to mention g_module_open everywhere as that's actually what we call internally.
This commit is contained in:
@@ -58,7 +58,7 @@ g_invoke_error_quark (void)
|
|||||||
* argument lists. This function uses dlsym() to obtain a pointer
|
* argument lists. This function uses dlsym() to obtain a pointer
|
||||||
* to the function, so the library or shared object containing the
|
* to the function, so the library or shared object containing the
|
||||||
* described function must either be linked to the caller, or must
|
* described function must either be linked to the caller, or must
|
||||||
* have been dlopen()<!-- -->ed before calling this function.
|
* have been g_module_symbol()<!-- -->ed before calling this function.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the function has been invoked, %FALSE if an
|
* Returns: %TRUE if the function has been invoked, %FALSE if an
|
||||||
* error occurred.
|
* error occurred.
|
||||||
|
@@ -1982,7 +1982,7 @@ _g_typelib_do_dlopen (GTypelib *typelib)
|
|||||||
shlibs = g_strsplit (shlib_str, ",", 0);
|
shlibs = g_strsplit (shlib_str, ",", 0);
|
||||||
|
|
||||||
/* We load all passed libs unconditionally as if the same library is loaded
|
/* We load all passed libs unconditionally as if the same library is loaded
|
||||||
* again with dlopen(), the same file handle will be returned. See bug:
|
* again with g_module_open(), the same file handle will be returned. See bug:
|
||||||
* http://bugzilla.gnome.org/show_bug.cgi?id=555294
|
* http://bugzilla.gnome.org/show_bug.cgi?id=555294
|
||||||
*/
|
*/
|
||||||
for (i = 0; shlibs[i]; i++)
|
for (i = 0; shlibs[i]; i++)
|
||||||
@@ -1990,7 +1990,7 @@ _g_typelib_do_dlopen (GTypelib *typelib)
|
|||||||
GModule *module;
|
GModule *module;
|
||||||
|
|
||||||
/* Glade's autoconnect feature and OpenGL's extension mechanism
|
/* Glade's autoconnect feature and OpenGL's extension mechanism
|
||||||
* as used by Clutter rely on dlopen(NULL) to work as a means of
|
* as used by Clutter rely on g_module_open(NULL) to work as a means of
|
||||||
* accessing the app's symbols. This keeps us from using
|
* accessing the app's symbols. This keeps us from using
|
||||||
* G_MODULE_BIND_LOCAL. BIND_LOCAL may have other issues as well;
|
* G_MODULE_BIND_LOCAL. BIND_LOCAL may have other issues as well;
|
||||||
* in general libraries are not expecting multiple copies of
|
* in general libraries are not expecting multiple copies of
|
||||||
|
Reference in New Issue
Block a user