[gnome-online-accounts/gnome-3-36] 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-36] client: Annotate goa_client_get_manager as returning NULL
- Date: Wed, 21 Oct 2020 13:38:13 +0000 (UTC)
commit 7e354696824f3d8f6bb98789f479ffb98fc6fe20
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]