Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-bluetooth-glib: コミット

external/bluetooth/glib


コミットメタ情報

リビジョン069f4299900e3cc0ffa73539e7d41a781f98ce9b (tree)
日時2012-07-15 05:33:23
作者Matthias Clasen <mclasen@redh...>
コミッターMatthias Clasen

ログメッセージ

Fix GModule documentation a bit

The documentation for g_module_make_resident was for some reason
in the doc comment for g_module_name.

https://bugzilla.gnome.org/show_bug.cgi?id=679813

変更サマリ

差分

--- a/gmodule/gmodule.c
+++ b/gmodule/gmodule.c
@@ -779,6 +779,13 @@ g_module_close (GModule *module)
779779 return g_module_error() == NULL;
780780 }
781781
782+/**
783+ * g_module_make_resident:
784+ * @module: a #GModule to make permanently resident
785+ *
786+ * Ensures that a module will never be unloaded.
787+ * Any future g_module_close() calls on the module will be ignored.
788+ */
782789 void
783790 g_module_make_resident (GModule *module)
784791 {
@@ -857,10 +864,13 @@ g_module_symbol (GModule *module,
857864
858865 /**
859866 * g_module_name:
860- * @module: a #GModule to make permanently resident
867+ * @module: a #GModule
861868 *
862- * Ensures that a module will never be unloaded.
863- * Any future g_module_close() calls on the module will be ignored.
869+ * Returns the filename that the module was opened with.
870+ *
871+ * If @module refers to the application itself, "main" is returned.
872+ *
873+ * Returns: (transfer none): the filename of the module
864874 */
865875 const gchar *
866876 g_module_name (GModule *module)
--- a/gmodule/gmodule.h
+++ b/gmodule/gmodule.h
@@ -52,10 +52,12 @@ typedef struct _GModule GModule;
5252 typedef const gchar* (*GModuleCheckInit) (GModule *module);
5353 typedef void (*GModuleUnload) (GModule *module);
5454
55+#ifndef __GTK_DOC_IGNORE__
5556 #ifdef G_OS_WIN32
5657 #define g_module_open g_module_open_utf8
5758 #define g_module_name g_module_name_utf8
5859 #endif
60+#endif
5961
6062 /* return TRUE if dynamic module loading is supported */
6163 gboolean g_module_supported (void) G_GNUC_CONST;
旧リポジトリブラウザで表示