[gobject-introspection] [docs] Reference g_module_open instead of dlopen



commit 20122e9823dbeacd32abd0372d2f9a4ed98bf8c5
Author: Johan Dahlin <johan gnome org>
Date:   Wed May 19 13:53:48 2010 -0300

    [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.

 girepository/ginvoke.c  |    2 +-
 girepository/gtypelib.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/girepository/ginvoke.c b/girepository/ginvoke.c
index 2d4c3f5..bae8da4 100644
--- a/girepository/ginvoke.c
+++ b/girepository/ginvoke.c
@@ -58,7 +58,7 @@ g_invoke_error_quark (void)
  * argument lists. This function uses dlsym() to obtain a pointer
  * to the function, so the library or shared object containing the
  * 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
  *   error occurred.
diff --git a/girepository/gtypelib.c b/girepository/gtypelib.c
index da7e5ee..463996c 100644
--- a/girepository/gtypelib.c
+++ b/girepository/gtypelib.c
@@ -1982,7 +1982,7 @@ _g_typelib_do_dlopen (GTypelib *typelib)
       shlibs = g_strsplit (shlib_str, ",", 0);
 
        /* 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
         */
       for (i = 0; shlibs[i]; i++)
@@ -1990,7 +1990,7 @@ _g_typelib_do_dlopen (GTypelib *typelib)
           GModule *module;
 
           /* 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
            * G_MODULE_BIND_LOCAL. BIND_LOCAL may have other issues as well;
            * in general libraries are not expecting multiple copies of



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]