[glib: 1/7] gcredentials: Add missing (transfer) and (nullable) return annotations




commit 2a76f01698efe5a7d1bf270a12187852b7e9737d
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Dec 15 09:09:59 2020 +0000

    gcredentials: Add missing (transfer) and (nullable) return annotations
    
    This commit only looks at the `Returns:` lines in the documentation, and
    has examined all of them in the file. Function arguments have not been
    checked.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #2227

 gio/gcredentials.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gio/gcredentials.c b/gio/gcredentials.c
index 9423f9ef9..87eaf1b0b 100644
--- a/gio/gcredentials.c
+++ b/gio/gcredentials.c
@@ -196,7 +196,7 @@ g_credentials_init (GCredentials *credentials)
  * Creates a new #GCredentials object with credentials matching the
  * the current process.
  *
- * Returns: A #GCredentials. Free with g_object_unref().
+ * Returns: (transfer full): A #GCredentials. Free with g_object_unref().
  *
  * Since: 2.26
  */
@@ -216,7 +216,7 @@ g_credentials_new (void)
  * that can be used in logging and debug messages. The format of the
  * returned string may change in future GLib release.
  *
- * Returns: A string that should be freed with g_free().
+ * Returns: (transfer full): A string that should be freed with g_free().
  *
  * Since: 2.26
  */
@@ -435,10 +435,10 @@ credentials_native_type_check (GCredentialsType  requested_type,
  * logged) to use this method if there is no #GCredentials support for
  * the OS or if @native_type isn't supported by the OS.
  *
- * Returns: The pointer to native credentials or %NULL if the
- * operation there is no #GCredentials support for the OS or if
- * @native_type isn't supported by the OS. Do not free the returned
- * data, it is owned by @credentials.
+ * Returns: (transfer none) (nullable): The pointer to native credentials or
+ *     %NULL if there is no #GCredentials support for the OS or if @native_type
+ *     isn't supported by the OS. Do not free the returned data, it is owned
+ *     by @credentials.
  *
  * Since: 2.26
  */


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