ginetaddress, ginetsocketaddress: Add missing (nullable) annotations

In both modules, new_from_string() may return NULL.
This commit is contained in:
Phil Clayton 2020-03-17 00:22:36 +00:00
parent 5d6e3d52b3
commit 1dfdb75073
2 changed files with 4 additions and 4 deletions

View File

@ -382,8 +382,8 @@ g_inet_address_init (GInetAddress *address)
* *
* Parses @string as an IP address and creates a new #GInetAddress. * Parses @string as an IP address and creates a new #GInetAddress.
* *
* Returns: a new #GInetAddress corresponding to @string, or %NULL if * Returns: (nullable) (transfer full): a new #GInetAddress corresponding
* @string could not be parsed. * to @string, or %NULL if @string could not be parsed.
* Free the returned object with g_object_unref(). * Free the returned object with g_object_unref().
* *
* Since: 2.22 * Since: 2.22

View File

@ -398,8 +398,8 @@ g_inet_socket_address_new (GInetAddress *address,
* If @address is an IPv6 address, it can also contain a scope ID * If @address is an IPv6 address, it can also contain a scope ID
* (separated from the address by a `%`). * (separated from the address by a `%`).
* *
* Returns: a new #GInetSocketAddress, or %NULL if @address cannot be * Returns: (nullable) (transfer full): a new #GInetSocketAddress,
* parsed. * or %NULL if @address cannot be parsed.
* *
* Since: 2.40 * Since: 2.40
*/ */