[glib: 1/2] ginetaddress, ginetsocketaddress: Add missing (nullable) annotations
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] ginetaddress, ginetsocketaddress: Add missing (nullable) annotations
- Date: Tue, 17 Mar 2020 13:07:11 +0000 (UTC)
commit 1dfdb750732b8d26fbe74f663728c7374576cedf
Author: Phil Clayton <phil clayton veonix com>
Date: Tue Mar 17 00:22:36 2020 +0000
ginetaddress, ginetsocketaddress: Add missing (nullable) annotations
In both modules, new_from_string() may return NULL.
gio/ginetaddress.c | 4 ++--
gio/ginetsocketaddress.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c
index 787c757da..808fc3930 100644
--- a/gio/ginetaddress.c
+++ b/gio/ginetaddress.c
@@ -382,8 +382,8 @@ g_inet_address_init (GInetAddress *address)
*
* Parses @string as an IP address and creates a new #GInetAddress.
*
- * Returns: a new #GInetAddress corresponding to @string, or %NULL if
- * @string could not be parsed.
+ * Returns: (nullable) (transfer full): a new #GInetAddress corresponding
+ * to @string, or %NULL if @string could not be parsed.
* Free the returned object with g_object_unref().
*
* Since: 2.22
diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c
index 81a527f6d..d7c813451 100644
--- a/gio/ginetsocketaddress.c
+++ b/gio/ginetsocketaddress.c
@@ -398,8 +398,8 @@ g_inet_socket_address_new (GInetAddress *address,
* If @address is an IPv6 address, it can also contain a scope ID
* (separated from the address by a `%`).
*
- * Returns: a new #GInetSocketAddress, or %NULL if @address cannot be
- * parsed.
+ * Returns: (nullable) (transfer full): a new #GInetSocketAddress,
+ * or %NULL if @address cannot be parsed.
*
* Since: 2.40
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]