[gnome-online-accounts/gnome-3-38] client: Annotate goa_client_get_manager as returning NULL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-38] client: Annotate goa_client_get_manager as returning NULL
- Date: Wed, 21 Oct 2020 13:37:18 +0000 (UTC)
commit 801cec0c2622e0938b608b5c00f0b2fc585402d9
Author: Marinus Schraal <mschraal gnome org>
Date: Tue Sep 1 10:20:14 2020 +0200
client: Annotate goa_client_get_manager as returning NULL
NULL is a valid return value for goa_client_get_manager and isn't
accompanied by the throwing of an error. This is why it needs to be
annotated [1].
This should have been included in commit 728d2bf1ec201977, which
updated the rest of the goa_client_get_manager documentation to mention
that it can return NULL.
[1] https://wiki.gnome.org/Projects/GObjectIntrospection/Annotations
https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/139
src/goa/goaclient.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/goa/goaclient.c b/src/goa/goaclient.c
index 19f2bd66..c3b8c8bf 100644
--- a/src/goa/goaclient.c
+++ b/src/goa/goaclient.c
@@ -405,8 +405,8 @@ goa_client_get_object_manager (GoaClient *self)
*
* Gets the #GoaManager for @self, if any.
*
- * Returns: (transfer none): A #GoaManager or %NULL. Do not free, the returned
- * object belongs to @self.
+ * Returns: (nullable) (transfer none): A #GoaManager or %NULL. Do not
+ * free, the returned object belongs to @self.
*/
GoaManager *
goa_client_get_manager (GoaClient *self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]